Re: Application Bundle won't quit at Shutdown
Re: Application Bundle won't quit at Shutdown
- Subject: Re: Application Bundle won't quit at Shutdown
- From: "Stockly, Ed" <email@hidden>
- Date: Mon, 14 Dec 2009 15:00:15 -0800
- Thread-topic: Application Bundle won't quit at Shutdown
Title: Re: Application Bundle won't quit at Shutdown
Has is right, this belongs in an idle handler, something like this...
On idle
global theMinimumInterval
set theMinuteCount to 0
set theMinuteCount to theMinuteCount + theMinimumInterval
repeat with eachAccount in theAccountList
set theAccount to item 1 of eachAccount
set theInterval to item 2 of eachAccount
if theInterval ≠ 0 then
set theMod to theMinuteCount mod theInterval
if (theMod = 0) then
check for new mail for theAccount
end if
end if
End repeat
Return (theMinimumInterval * 60)
End idle
Then save your script as an applet set to “stay open”
HTH
ES
On 12/14/09 2:51 PM, "email@hidden" wrote:
repeat
delay (theMinimumInterval * 60)
set theMinuteCount to theMinuteCount + theMinimumInterval
repeat with eachAccount in theAccountList
set theAccount to item 1 of eachAccount
set theInterval to item 2 of eachAccount
if theInterval ≠ 0 then
set theMod to theMinuteCount mod theInterval
if (theMod = 0) then
check for new mail for theAccount
end if
end if
end repeat
end repeat
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden