re: Check for new mail
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.