2012-06-12 30 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