<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    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 class="moz-cite-prefix">Am 02.03.2020 um 15:47 schrieb Jan
      Angermüller:<br>
    </div>
    <blockquote type="cite"
      cite="mid:97ba76e9-4500-0854-09ea-3d6c039b53c5@angermueller.com">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      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 class="moz-cite-prefix">Am 28.01.2017 um 18:09 schrieb Simon
        Leclerc:<br>
      </div>
      <blockquote type="cite"
        cite="mid:0AD369A9-C39A-4B1E-8590-9A28359519C8@prodsl.ca">
        <meta http-equiv="Content-Type" content="text/html;
          charset=UTF-8">
        Hi everyone,
        <div class=""><br class="">
        </div>
        <div class="">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 class=""><br class="">
        </div>
        <div class="">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 class=""><br class="">
        </div>
        <div class="">I tried many combinations, the zero-based concept
          not being true all the time, but could not find the right one.</div>
        <div class=""><br class="">
        </div>
        <div class="">Any clue?</div>
        <div class=""><br class="">
        </div>
        <div class="">Thanks to all.</div>
        <div class=""><br class="">
        </div>
        <div class=""><br class="">
          <div class=""> <span class="Apple-style-span" style="color:
              rgb(0, 0, 0); font-family: Helvetica; font-style: normal;
              font-variant-ligatures: normal; font-variant-position:
              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; orphans: 2;
              text-align: -webkit-auto; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 2;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;
              border-collapse: separate; border-spacing: 0px;
              -webkit-text-decorations-in-effect: none;">
              <div style="word-wrap: break-word; -webkit-nbsp-mode:
                space; -webkit-line-break: after-white-space;" class="">
                <div class=""><br class="Apple-interchange-newline">
                  <br class="">
                </div>
                <div class=""><br class="">
                </div>
                <div class=""><br class="">
                </div>
                <div class="">Simon Leclerc</div>
                <div class="">60, Mirabelle</div>
                <div class="">Ste-Agathe-des-Monts, Québec</div>
                <div class="">J8C 0W9</div>
                <div class=""><a href="mailto:simon@prodsl.ca"
                    class="moz-txt-link-freetext" moz-do-not-send="true">simon@prodsl.ca</a></div>
                <div class=""><br class="">
                </div>
              </div>
            </span><br class="Apple-interchange-newline" style="color:
              rgb(0, 0, 0); font-family: Helvetica; font-style: normal;
              font-variant-ligatures: normal; font-variant-position:
              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; orphans: 2;
              text-align: -webkit-auto; text-indent: 0px;
              text-transform: none; white-space: normal; widows: 2;
              word-spacing: 0px; -webkit-text-stroke-width: 0px;">
            <br class="Apple-interchange-newline">
          </div>
          <br class="">
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated moz-txt-link-freetext" href="mailto:JWLua@jwmusic.nu" moz-do-not-send="true">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" moz-do-not-send="true">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
      </blockquote>
      <br>
      <pre class="moz-signature" 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 class="moz-txt-link-abbreviated" href="http://www.elbsound.studio" moz-do-not-send="true">www.elbsound.studio</a></pre>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
JWLua mailing list
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jan Angermüller
Orchideenstieg 13
22297 Hamburg
Tel. 040 - 28 94 84 82
Mobil 0173 - 99 33 904
<a class="moz-txt-link-abbreviated" href="http://www.elbsound.studio">www.elbsound.studio</a></pre>
  </body>
</html>