我有一个Applescript脚本,它被设置为使用Geektool每10秒重复一次。
我在每个处理程序的末尾都有返回,让我知道发生了什么,但这给我提供了很少的机会看到脚本中间到底发生了什么。
所以我想问的是,Applescript中是否有像return这样的命令,但不会停止脚本?
干杯。
发布于 2012-06-12 11:41:52
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发布于 2013-08-26 23:59:07
返回函数应该可以工作。
set stringYouWantToReturn to "banana"
return stringYouWantToReturnhttps://stackoverflow.com/questions/10989760
复制相似问题