<div dir="ltr"><div>Most likely it is the focus issue, especially if you are using a dialog box, and I don't know of a way to resolve it. I've never tried to use execute menu item for plugins.<br></div><div><br></div><div>If you are trying to activate another Lua script, you could use FCLuaScriptItem(s) instead.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 11, 2022 at 6:05 AM Jan Angermüller <<a href="mailto:jan@angermueller.com">jan@angermueller.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
Robert,<br>
<br>
is there any trick for starting plug-ins from within a lua script
with the finenv.UI():ExecuteOSMenuCommand<b> </b><b>on macOS</b>?<br>
<br>
On macOS I haven't succeeded neither with ExecuteOSMenuCommand nor
with MenuPositionCommand.<br>
On Windows both functions works fine.<br>
<br>
finenv.UI():GetOSMenuCommandFromItemText seems to work fine on
macOS. <br>
Or it least it returns a value that seems to be valid (2033201231).<br>
<br>
In the documentation it says that on macOS the Finale <b>document
window must be in focus</b>.<br>
Is this the problem? Can I force the document to be in focus?<br>
I have tried finenv.UI():ActivateDocumentWindow () or
finenv.UI():MenuCommand(finale.MENUCMD_SELECTIONTOOL) directly
before finenv.UI():ExecuteOSMenuCommand. <br>
It doesn't work.<br>
<br>
Do you have a working example lua script to start any plug-in from
the Finale Plug-ins menu on macOS?<br>
<br>
This topic has already been twice on the mailing list for
MenuPositionCommand() (see below). <br>
But with no answers yet.<br>
<br>
I had an interesting request for which I developed a working Windows
script. But it doesn't work on macOS yet.<br>
The request was for a script that starts another plug-in, but
applies the plug-in only to all parts, not to the score.<br>
<br>
Jan<br>
<br>
<br>
<div>Am 02.03.2020 um 15:47 schrieb Jan
Angermüller:<br>
</div>
<blockquote type="cite">
Hi Simon,<br>
<br>
did you find a solution for this?<br>
I encountered the same issue. <br>
It works fine on Windows, but on MacOS I can't access the Plug-ins
menu via MenuPositionCommand() either.<br>
<br>
Best,<br>
Jan<br>
<br>
<div>Am 28.01.2017 um 18:09 schrieb Simon
Leclerc:<br>
</div>
<blockquote type="cite">
Hi everyone,
<div><br>
</div>
<div>I’m trying to access the menu “Plug-ins” (as in
“File”, “Edit”, “Utilities”, etc…) using
the ui:MenuPositionCommand(), but to no avail.</div>
<div><br>
</div>
<div>I have access to all the other menus and
sub-menus, but the “Plug-in” one, which should be #7 on a Mac
system, seems not possible to be invoked.</div>
<div><br>
</div>
<div>I tried many combinations, the zero-based concept
not being true all the time, but could not find the right one.</div>
<div><br>
</div>
<div>Any clue?</div>
<div><br>
</div>
<div>Thanks to all.</div>
<div><br>
</div>
<div><br>
<div> <span style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-collapse:separate;border-spacing:0px">
<div style="overflow-wrap: break-word;">
<div><br>
<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>Simon Leclerc</div>
<div>60, Mirabelle</div>
<div>Ste-Agathe-des-Monts, Québec</div>
<div>J8C 0W9</div>
<div><a href="mailto:simon@prodsl.ca" target="_blank">simon@prodsl.ca</a></div>
<div><br>
</div>
</div>
</span><br style="color:rgb(0,0,0);font-family:Helvetica;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<br>
</div>
<br>
</div>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
JWLua mailing list
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Dipl.-Ing.(FH) Dipl.-Jur. Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a href="http://www.elbsound.studio" target="_blank">www.elbsound.studio</a></pre>
<br>
<fieldset></fieldset>
<pre>_______________________________________________
JWLua mailing list
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
</blockquote>
<br>
<pre cols="72">--
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a href="http://www.elbsound.studio" target="_blank">www.elbsound.studio</a></pre>
</div>
_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>