• 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: Check for new mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

re: Check for new mail


  • Subject: re: Check for new mail
  • From: Bryan Taylor <email@hidden>
  • Date: Tue, 1 Jul 2003 20:27:24 +1200

Rich,

Although your question is about Panther, which may or may not be different behaviour, I use the following for an auto dialup from 10.2.6, check for mail & disconnect. Hope its useful.

tell application "Internet Connect" to activate
tell application "Internet Connect" to connect
tell application "Mail" to activate
tell application "Mail" to check for new mail
set bgCount to 1

repeat until bgCount is 0
tell application "Mail"
set bgCount to background activity count
end tell
delay 10 -- seconds between checks
end repeat

if bgCount is 0 then
tell application "Internet Connect" to disconnect
quit application "Internet Connect"
end if

cheers
Bryan
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: Quark box origins in Classic
  • Next by Date: Entourage scripts works on *some* computers
  • Previous by thread: Re: Quark box origins in Classic
  • Next by thread: Entourage scripts works on *some* computers
  • Index(es):
    • Date
    • Thread