• 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: Everyone's favorite: scripting Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Everyone's favorite: scripting Mail.app


  • Subject: Re: Everyone's favorite: scripting Mail.app
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 24 Aug 2007 05:57:23 -0700

On Aug 24, 2007, at 1:10 AM, Rob Lewis wrote:

Is there any way for this script to access the message that triggered the rule? How is it done?

Yes, here is the general form of a mail-action script:

using terms from application "Mail"
	on perform mail action with messages theMessages for rule theRule
		tell application "Mail"
			--the script goes here.

		end tell
	end perform mail action with messages
end using terms from

--
"When fascism comes to America, it will be wrapped in the flag and carrying a cross."--Sinclair Lewis



_______________________________________________ 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: 
 >Everyone's favorite: scripting Mail.app (From: Rob Lewis <email@hidden>)

  • Prev by Date: Re: Reading and writing records
  • Next by Date: Re: Reading and writing records
  • Previous by thread: Everyone's favorite: scripting Mail.app
  • Next by thread: Reading and writing records
  • Index(es):
    • Date
    • Thread