<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/xhtml; charset=utf-8">
</head>
<body>
<div style="font-family:sans-serif"><div style="white-space:normal">
<p dir="auto">On 5 Jun 2018, at 0:06, Craig Drown wrote:</p>
<blockquote style="border-left:2px solid #777; color:#777; margin:0 0 5px; padding-left:5px">
<p dir="auto">I would have expected something like:</p>
<pre style="background-color:#F7F7F7; border-radius:5px 5px 5px 5px; margin-left:15px; margin-right:15px; max-width:90vw; overflow-x:auto; padding:5px" bgcolor="#F7F7F7"><code style="background-color:#F7F7F7; border-radius:3px; margin:0; padding:0" bgcolor="#F7F7F7">var mm = Application('MailMate’);
mm.perform('toggleFlag:’);
</code></pre>
</blockquote>
<p dir="auto">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:</p>
<p dir="auto">mm.perform("toggleFlag:")</p>
<p dir="auto">I could also not make a list of arguments work. For now, I've worked around it by making this work:</p>
<p dir="auto">mm.perform({selectors: ["toggleFlag:", "toggleReadState:"]})</p>
<p dir="auto">(This should work in the next update.)</p>
<p dir="auto">-- <br>
Benny<br>
<a href="https://freron.com/become_a_mailmate_patron/" style="color:#3983C4">https://freron.com/become_a_mailmate_patron/</a></p>
</div>
</div>
</body>
</html>