Mail.app & checking for new mail
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.