Skip to content
Prev 8150 / 15076 Next

any way to tell R.app to clear console (other than simulating cmd-option-L)?

Thanks Hans!
I was hoping to avoid relying on simulating keypresses and the consequent context switch.

but it does the trick, so. 

osascript -e 'on run(theCode)' \
          -e 'tell application "R64" to activate' \
          -e 'tell application "System Events" to keystroke "l" using {command down, option down}' \
          -e 'tell application "TextMate" to activate' \
	  -e 'end run?

Probably best saved as a workflow, to reduce dependency on one editor.
So, as a Services workflow (to install in the new and improved OS X services system)
~/Library/Services