2012-06-12 27 views
0

我有一个Applescript脚本设置为每10秒重复Geektool。Geektool和返回Applescript

我在每个处理程序的末尾都有返回值,让我知道发生了什么,但是这让我很少有机会看到中间脚本究竟发生了什么。

所以我问的是,如果有一个像返回的命令,但不会停止脚本?

干杯。

回答

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 
+0

啊,关闭,但每隔10秒钟对话框是非常恼人的。我正在寻找类似输出的Applescript结果窗口,即打印到命令行等。 –

+0

尝试修改答案。 – adayzdone

0

返回功能应该工作。

set stringYouWantToReturn to "banana" 
return stringYouWantToReturn