Re: Mail scripting…
Re: Mail scripting…
- Subject: Re: Mail scripting…
- From: Michelle Steiner <email@hidden>
- Date: Mon, 7 Apr 2008 14:13:34 -0700
On Apr 7, 2008, at 1:49 PM, awaw wrote: But I was thinking of something more "generic" or "universal".
"like" : if the mailbox have a subfolder then get the name of the subfolder -- it's a mailbox for Mail… if message exists then…
The following script will search recursively through all mailboxes that contain mailboxes.
tell application "Mail" to my searchmailboxes(mailboxes whose mailboxes is not {})
on searchmailboxes(mailboxList) repeat with thisMailbox in mailboxList tell application "Mail" my searchmailboxes(thisMailbox) -- search for unread messages here end tell end repeat end searchmailboxes -- "If I were not an atheist, I would believe in a God who would choose to save people on the basis of the totality of their lives and not the pattern of their words. I think he would prefer an honest and righteous atheist to a TV preacher whose every word is God, God, God, and whose every deed is foul, foul, foul." -- Isaac Asimov
|
_______________________________________________
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