Re: Extract text from email
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