• 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: Sending from Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sending from Mail


  • Subject: Re: Sending from Mail
  • From: Philip Aker <email@hidden>
  • Date: Sun, 20 Sep 2009 02:38:08 -0700

On 2009-09-20, at 02:26:44, Philip Aker wrote:

How do I get that word out of the original subject?

Here I'm getting the subject of every post in a nested mailbox whose sender is "email@hidden".

tell application "Mail"
set mlst to (get subject of every message of mailbox "x" of mailbox "y" whose sender contains "email@hidden")
end tell


So I think you can get the subject of a specific message easily and then test to see if it contains a certain word.

PS, The above script takes a long time on my setup (Slow Leopard 10.6.1). I'm not sure why. Seems to me similar calls were faster on plain vanilla Leopard.



Philip Aker echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

_______________________________________________
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
References: 
 >Sending from Mail (From: LuKreme <email@hidden>)
 >Re: Sending from Mail (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: Sending from Mail
  • Next by Date: Re: Snow Leopard and (old) AppleScript applications
  • Previous by thread: Re: Sending from Mail
  • Next by thread: Re: Sending from Mail
  • Index(es):
    • Date
    • Thread