Skip to content
Prev 4232 / 15075 Next

Applescript window selection question

hiya,

I saw your reply from R-SIG-Mac for question of applescript window.
You wrote:
John,

In textmate, below line is used:

osascript -e 'tell application "R.app" to activate' -e "tell
application \"R.app\" to cmd \"source(file='$TM_FILEPATH',
print.eval=TRUE)\""

I used similar constructs for SubEthaEdit and Smultron in AppleScript.

Try using tell **application**.

Rob

===========================================================

Can I ask you how to redirect the R routines within smultran to run on  
R?  I believe an applescript can help but I'm fairly new to  
applescript and smultran, and have no idea where to start.

Thanks very much in advance.

Cheers,
Mandy