2014-02-24 199 views
0

我想要的彈出顯示,每60秒或使用顯示彈出式窗口使用AppleScript

display dialog "Hello there!" 

我想這個彈出提醒我要休息一下3600秒,這就是每60秒我爲什麼要等待GIVEN秒,我關閉後,等待再次獲得秒

+0

類似的問題已經回答了這裏:http://stackoverflow.com/questions/3718520/how-do-i-write-applescript - 即意志放棄的我,一小時一次,彈出式警告 – adamh

回答

1
 
repeat 
    set delayTime to 60 # number of seconds between showings 
    set giveUpTime to 10 # number of seconds to show dialog before giving up 

    display dialog "Hello there!" giving up after giveUpTime 
    delay delayTime 
end repeat