Re: Mail and Searching
Re: Mail and Searching
- Subject: Re: Mail and Searching
- From: Michelle Steiner <email@hidden>
- Date: Mon, 28 Jul 2008 09:06:17 -0700
On Jul 28, 2008, at 6:26 AM, Axel Luttgens wrote: Well, looks like it is possible to go somewhat further:
tell application "Mail" messages of mailbox "Applescript" whose sender contains "nebel" tell (make new message viewer) to set visible messages to result end tell
Nice.
It didn't occur to me to use "set visible messages"; I tried to have the script select the messages.
But, depending on the needs, wouldn't this be a job for a smart mailbox? Unfortunately, you can't script smart mailboxes; the term doesn't exist in mail's dictionary. If the OP needs to do it through scripting, he can't use them.
By the way, if you don't want to create a new message viewer:
tell application "Mail" to tell message viewer 1 to set visible messages to messages of mailbox "Applescript" of application "Mail" whose sender contains "nebel"
-- Michelle
-- Please contribute to the Leukemia and Lymphoma Society, and help me meet my fund raising goal for my marathon training.
|
_______________________________________________
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