[R-SIG-Mac] Applescript window selection question

Mandy Ng mandy.ng at genetics.kcl.ac.uk
Thu Jan 17 17:25:15 CET 2008


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



More information about the R-SIG-Mac mailing list