• 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: search in mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: search in mail


  • Subject: Re: search in mail
  • From: Michelle Steiner <email@hidden>
  • Date: Sun, 2 Jan 2011 07:10:28 -0700


On Jan 2, 2011, at 3:54 AM, Joshua Whalen wrote:

I'm trying to write a script that will loop through inbox, and extract the subject line from every unread message a save it as a text string. 

tell application "Mail"
set the subjectList to the subject of messages of inbox whose read status is false
end tell
set text item delimiters to return
set the subjectList to the the subjectList as text
--save to file

-- Michelle

-- 
Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming, "WOW! What a ride!!!"

 _______________________________________________
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: 
 >search in mail (From: Joshua Whalen <email@hidden>)

  • Prev by Date: Re: grep 2.7 & linked-images
  • Next by Date: How to do a goto with Applescript?
  • Previous by thread: Re: search in mail
  • Next by thread: How to do a goto with Applescript?
  • Index(es):
    • Date
    • Thread