Mail scripting... try with a time limit
Mail scripting... try with a time limit
- Subject: Mail scripting... try with a time limit
- From: Bob Cuilla <email@hidden>
- Date: Wed, 28 Nov 2007 11:51:38 -0500
I am scritping mail and would like to specify a try block but need a time limit.
Here is my script. I have numbered the lines for reference.
1-tell application "Mail"
2-if not (exists some message viewer) then make new message viewer
3-set selected mailboxes of message viewer 1 to {mailbox "Valid By Subject" of account "TEC Requests"}
4-tell message viewer 1 5-set theMessages to the content of every message as string 6-end tell
7-end tell
This all works OK as long as there is some content in that specified mailbox, or as long as the servers arent slow or down.
Can I surround any or all of these statements with try--end trys and a timer? My issues occurs when statements 4 thru 6 are waiting for mail to respond. I would like to put a time limit on that area and exit with a different path if there is a time out. Hope this all makes sense to someone who is a lot smarter than me
Thanks
Bob Cuilla Orlando
|
_______________________________________________
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