Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/selenium/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Geektool和返回的Applescript_Applescript_Return_Geektool - Fatal编程技术网

Geektool和返回的Applescript

Geektool和返回的Applescript,applescript,return,geektool,Applescript,Return,Geektool,我有一个Applescript脚本,设置为使用Geektool每10秒重复一次 我在每个处理程序的末尾都有返回,让我知道发生了什么,但这让我几乎没有机会看到中间脚本到底发生了什么 所以我要问的是,在Applescript中是否有类似return的命令,但不会停止脚本 干杯 display dialog "This is what's going on" giving up after 1 或 返回函数应该可以工作 set stringYouWantToReturn to "banana

我有一个Applescript脚本,设置为使用Geektool每10秒重复一次

我在每个处理程序的末尾都有返回,让我知道发生了什么,但这让我几乎没有机会看到中间脚本到底发生了什么

所以我要问的是,在Applescript中是否有类似return的命令,但不会停止脚本

干杯

display dialog "This is what's going on" giving up after 1


返回函数应该可以工作

    set stringYouWantToReturn to "banana"
return stringYouWantToReturn

啊,很接近,但是每10秒就有一个对话框是很烦人的。我正在寻找Applescript结果窗口之类的输出,即打印到命令行等。
    set stringYouWantToReturn to "banana"
return stringYouWantToReturn