• 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: Set variable to contents of incoming message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set variable to contents of incoming message


  • Subject: Re: Set variable to contents of incoming message
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 17 Aug 2012 09:08:04 -0700

On Aug 17, 2012, at 8:55 AM, Tony Bennett wrote:

I want to assign the content of an incoming message to a variable which will be parsed and saved to a file.  The script will be called from a Mail rule.

Here's how to do it from a selected message; you should be able to modify it for a mail rule:

tell application "Mail"
set myVariable to the content of item 1 of (get the selection)
end tell

-- Michelle

-- 
Windows Vista: Viruses, Intrusions, Spyware, Trojans, and Adware.


 _______________________________________________
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: 
 >Set variable to contents of incoming message (From: Tony Bennett <email@hidden>)

  • Prev by Date: Set variable to contents of incoming message
  • Next by Date: Re: Set variable to contents of incoming message
  • Previous by thread: Set variable to contents of incoming message
  • Next by thread: Re: Set variable to contents of incoming message
  • Index(es):
    • Date
    • Thread