【发布时间】:2014-07-05 18:39:17
【问题描述】:
通过 Terminal/Totalterminal 或 iTerm,此脚本运行良好:
cd ~/go/to/dir/ && R -e "shiny::runApp("/go/to/dir", launch.browser=TRUE)"
但是作为/在通过 Automator 的应用程序中,第二部分不起作用。
在 Automator 中:运行 Shell 脚本。 “普通”终端和 Automator 使用的终端的区别在哪里。 在 /bin/bash
【问题讨论】:
-
运行shell脚本与automator中的终端不同
-
我很少使用自动机,但在苹果脚本中,如果你使用规范的命令行(例如使用 R)做某事,你必须运行
tell application "Terminal" activate do shell script "..." -
几乎完美 ;) 但到目前为止,applescript 在您需要的 AS 中与
R -e 'shiny::runApp("/Users/1/2/3/", launch.browser=TRUE)'存在问题:"R -e 'shiny::runApp("/Users/1/2/3/", launch.browser=TRUE)'"它是标记问题。 -
是的,我试过了,但总是失败。我错过了“\”的正确位置
-
发布您嵌入到 Applescript Automator 操作中的 applescript,我们可以帮助处理引用的表单等。