我有一个Applescript脚本,设置为每隔10秒重复一次Geektool。
我在每个处理程序的末尾都有回报让我知道发生了什么,但是这让我几乎没有机会看到中间脚本到底发生了什么。
所以我要问的是,如果在Applescript中有一个命令,比如返回但是不会停止脚本吗?
干杯。
答案 0 :(得分:2)
display dialog "This is what's going on" giving up after 1
或
tell application "Terminal"
activate
set xxx to "This is what's going on"
do script "echo " & quoted form of xxx in window 1
delay 2
do script "echo " & quoted form of xxx in window 1
end tell
答案 1 :(得分:0)
返回功能应该有效。
set stringYouWantToReturn to "banana"
return stringYouWantToReturn