• 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: Extract text from email
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Extract text from email


  • Subject: Re: Extract text from email
  • From: Michelle Steiner <email@hidden>
  • Date: Mon, 13 Sep 2004 09:59:30 -0700


On Sep 13, 2004, at 9:05 AM, Michael Tompsett wrote:

--first part get the SOURCE of the email, which includes all thebody text, can't see any way to specifically get just the body text

Use "content" instead of "source"

Unfortunately, Applescript itself does not support "whose" clauses, so you do need to use an application to search; fortunately, Mail.app itself supports "whose" clauses, so you can do the entire thing right within mail.app.

using terms from application "Mail"
tell application "Mail"
set theSelectedMessages to selection
set eachMessage to item 1 of theSelectedMessages
set theSource to paragraphs of content of eachMessage whose first word is "File"
end tell
end using terms from


You should be able to take it from there.

-- Michelle

--
Don't assume I'm straight.  Don't assume I'm not.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Extract text from email
      • From: Michelle Steiner <email@hidden>
References: 
 >Extract text from email (From: Michael Tompsett <email@hidden>)

  • Prev by Date: Working with Clipping Paths in Quark 6
  • Next by Date: Re: Digital Sigs (was IS: ATTN: List Mom: Unnecessary smime attachments)
  • Previous by thread: Extract text from email
  • Next by thread: Re: Extract text from email
  • Index(es):
    • Date
    • Thread