Thanks Benny- much appreciated.
Cheers,
Craig

On 6 Jun 2018, at 23:53, Benny Kjær Nielsen wrote:

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/

Sustainable Solutions
Kathmandu, Nepal & Auckland, New Zealand
Nepal: +977 1 5548021
New Zealand: +64 22 519 0499
[email protected]              skype://craigdrown
http://www.sussol.net       http://www.msupply.org.nz
_______________________________________________
mailmate mailing list
[email protected]
https://lists.freron.com/listinfo/mailmate

Reply via email to