• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Application Bundle won't quit at Shutdown
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Application Bundle won't quit at Shutdown
      • From: email@hidden
References: 
 >Re: Application Bundle won't quit at Shutdown (From: email@hidden)

  • Prev by Date: Re: Application Bundle won't quit at Shutdown
  • Next by Date: Re: Application Bundle won't quit at Shutdown
  • Previous by thread: Re: Application Bundle won't quit at Shutdown
  • Next by thread: Re: Application Bundle won't quit at Shutdown
  • Index(es):
    • Date
    • Thread