Re: Mail Rule To Open Message
Re: Mail Rule To Open Message
- Subject: Re: Mail Rule To Open Message
- From: Christian Boyce <email@hidden>
- Date: Mon, 7 Aug 2017 21:53:07 -0700
You'll need a script like this:
using terms from application "Mail"
on perform mail action with messages theMessages for rule theRule
repeat with i from 1 to count of theMessages
open item i of theMessages
end repeat
end perform mail action with messages
end using terms from
There are probably other ways to do it, but this works.
Save the script in the special place that it needs to be saved in:
~Library/Application Scripts/com.apple.com <http://com.apple.com/>
Make a rule and have the action be "Perform AppleScript" and then choose the
script.
c
> On Aug 7, 2017, at 6:49 PM, Marconi <email@hidden
> <mailto:email@hidden>> wrote:
>
> Apparently, the only way to cause a Mail rule to open a filtered message on
> the screen is by means of an Applescript. There is no rule action to simply
> open messages caught by the rule. There is an action to call an Applescript.
>
> Can anyone point me to an example of how to simply open and display a message
> that is caught by a Mail rule?
>
>
--
Christian Boyce
Christian Boyce and Associates
Mac, iPhone, and iPad Consultants
_______________________________________________
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