• 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
Mail.app & checking for new mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail.app & checking for new mail


  • Subject: Mail.app & checking for new mail
  • From: Andrew Weaver <email@hidden>
  • Date: Sat, 17 May 2003 18:08:08 +0100

I'm trying to write a script that will connect me to a dial up internet
account, then check for new mail before hanging up again.

I've tried variations on the code below, but it doesn't wait for the
mail to be downloaded before disconnecting.

Can anyone help?

tell application "Internet Connect"
activate
connect
end tell
tell application "Mail"
activate
check for new mail
end tell
tell application "Internet Connect"
disconnect
quit
end tell
_______________________________________________
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: Run-Only script in OSX 10.2.6
  • Next by Date: Re: Finding Duplicate named files with exactly the same size
  • Previous by thread: Re: Detecting Default PDF reader/writer
  • Next by thread: Subject: Re: ? selecting text in a pdf page
  • Index(es):
    • Date
    • Thread