OT - Running AppleScript from a Mail Rule
Jerry — MacSolutions
jerry at stlmacguy.com
Wed Aug 12 14:13:36 EDT 2020
Which operating system are you running?
Jerry
> On Aug 12, 2020, at 12:49 PM, Sean Lavigne <sean at houselavigne.us> wrote:
>
> Good afternoon,
>
> I’m having trouble triggering an AppleScript from within an Apple Mail rule.
>
> I’ve recently moved XTension to a new (old) dedicated Mac. When XTension and Apple Mail were on the same Mac, I had a Mail rule that would run an AppleScript letting XTension know when a tornado warning email was received. I generally get these emails about a minute or two before the weather radios sound off. These worked great when Apple Mail and XTension were on the same Mac.
>
> Now, Apple Mail is on a Catalina Mac and XTension is on a Mojave Mac. I’ve edited my AppleScript to reach the remote machine:
>
> ignoring application responses
> tell application "XTension" of machine "eppc://username:password...@192.168.1.6 <eppc://username:password...@192.168.1.6>"
> turnon "v Warning - Tornado Warning"
> end tell
> end ignoring
>
> The script runs fine when I run it in AppleScript, but never seems to get triggered from Apple Mail. I’ve written the rule to look for a specific sender and “Severe Thunderstorm Warning” in the message content. When I run the rule on such an email the AppleScript does not trigger.
>
> If I edit the rule to include an additional action, like forwarding the email to another of my inboxes, that part of the rule does work, so it’s just that the AppleScript action isn’t running or is being suppressed for seem reason.
>
> Any ideas what could be going on?
>
> Thanks!
>
> Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.machomeautomation.com/pipermail/xtensionlist/attachments/20200812/9be56928/attachment.html>
More information about the XTensionList
mailing list