[MlMt] JSX scripting Mailmate

Benny Kjær Nielsen mailinglist at freron.com
Wed Jun 6 07:53:59 EDT 2018


On 5 Jun 2018, at 0:06, Craig Drown wrote:

> I would have expected something like:
>
> 	var mm = Application('MailMate’);
> 	mm.perform('toggleFlag:’);

I couldn't make this work either and I'm not quite sure why. It might be 
because I'm using an old way of defining the AppleScript support in 
MailMate. In any case, I tried doing a quick fix and this should now 
work:

    mm.perform("toggleFlag:")

I could also not make a list of arguments work. For now, I've worked 
around it by making this work:

    mm.perform({selectors: ["toggleFlag:", "toggleReadState:"]})

(This should work in the next update.)

-- 
Benny
https://freron.com/become_a_mailmate_patron/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20180606/07d9d42f/attachment.html>


More information about the mailmate mailing list