Re: Everyone's favorite: scripting Mail.app
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