Burkard,

Something along:


#!/bin/bash
osascript -e 'tell application "R.app" to activate'
osascript -e "tell application \"R.app\" to cmd \"source(file='%%p', print.eval=TRUE)\""


works on my system.

Regards,
Rob

On Dec 24, 2008, at 11:06 AM, Burkard Pfeiffer wrote:

Hi there,

can anyone please help me how to run Smultron as an external editor? I am
fairly new to R and don't know much about apple script either. I tried
some osascript in the Commands-Window of Smultron but it didn't work. I
run Smultron v3.5, R 2.8.1 and OSX Leopard 10.5.5.

I would like to execute script, written in smultron...

Thanks in advance + merry xmas

burkard

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to