• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail and Searching
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
<http://www.active.com/donate/tntdms/tntdmsMSteine>




 _______________________________________________
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

  • Follow-Ups:
    • Re: Mail and Searching
      • From: Elijah Samuels <email@hidden>
    • Re: Mail and Searching
      • From: Geoff Sheehan <email@hidden>
References: 
 >perhaps I'll ask again on the Mail scripting thing (From: "Charles Arthur, UKClimbing Editor" <email@hidden>)
 >Re: perhaps I'll ask again on the Mail scripting thing (From: "Michael J. Vinca" <email@hidden>)
 >Re: perhaps I'll ask again on the Mail scripting thing (From: Michelle Steiner <email@hidden>)
 >Re: perhaps I'll ask again on the Mail scripting thing (From: "Michael J. Vinca" <email@hidden>)
 >Re: perhaps I'll ask again on the Mail scripting thing (From: Michelle Steiner <email@hidden>)
 >Mail and Searching (From: Geoff Sheehan <email@hidden>)
 >Re: Mail and Searching (From: Michelle Steiner <email@hidden>)
 >Re: Mail and Searching (From: Axel Luttgens <email@hidden>)

  • Prev by Date: Re: weird behaviour
  • Next by Date: Re: Is "frontmost application" depreciated
  • Previous by thread: Re: Mail and Searching
  • Next by thread: Re: Mail and Searching
  • Index(es):
    • Date
    • Thread