-1

via Terminal/Totalterminal or iTerm, this script works very well:

cd ~/go/to/dir/ && R -e "shiny::runApp("/go/to/dir", launch.browser=TRUE)"

but as/in a App via Automator, the second Part wont work.

In Automator: run Shell-Script. Where is the difference of "normal" Terminal and the Terminal used by Automator. In both /bin/bash

8
  • run shell script is not the same as terminal in automator Commented Jul 2, 2014 at 15:55
  • 1
    I don't use automator much, but in apple script if you do something out of a canonical comand line (like use R, for example), you must run tell application "Terminal" activate do shell script "..." Commented Jul 2, 2014 at 15:56
  • nearly perfect ;) but so far applescript has problems with R -e 'shiny::runApp("/Users/1/2/3/", launch.browser=TRUE)' in AS you need: "R -e 'shiny::runApp("/Users/1/2/3/", launch.browser=TRUE)'" Its a problem with the marks. Commented Jul 2, 2014 at 16:36
  • Yes,I'v try it but always failed. I miss the right psotion for the "\" Commented Jul 2, 2014 at 16:58
  • post your applescript that you've embedded into an Applescript Automator action and we can help with the quoted forms, etc. Commented Jul 3, 2014 at 6:01

1 Answer 1

0

Is r on the path in Automator? If not, replace r with the full path like /usr/local/bin/r (shown by which r).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.