【发布时间】:2014-06-19 20:16:55
【问题描述】:
这很简单。就是搞不定。
我正在制作一个 alfredworkflow,我想在其中获取一个 URL,然后在终端中 curl / wget(程序无关紧要)。如果我可以在后台执行此操作,那就太好了,但如果它需要打开终端,我可以忍受。
到目前为止我所拥有的:
tell application "Google Chrome"
set theURL to URL of active tab of window 1
end tell
tell application "Terminal"
activate
do script "echo "${theURL}
end tell
【问题讨论】:
-
这不是AppleScript,不是ActionScript吗?
标签: bash shell terminal applescript alfred