Re: Set variable to contents of incoming message
Re: Set variable to contents of incoming message
- Subject: Re: Set variable to contents of incoming message
- From: Lists <email@hidden>
- Date: Fri, 17 Aug 2012 09:14:02 -0700
On Aug 17, 2012, at 8:55 AM, Tony Bennett < email@hidden> wrote: I want to assign the content of an incoming message to a variable which will be parsed and saved to a file.
Grab the message's body text:
tell application "Mail" set msgBody to content of message 1 of mailbox "Bubba" end tell
Or
Grab the message's source for the entire message:
tell application "Mail" set msg to source of message 1 of mailbox "Bubba" end tell
HTH J |
_______________________________________________
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