<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Do you call the script twice? (before and after switching back to
    Finale)<br>
    Or is it one long call of the script during which you switch to
    another application and back?<br>
    In the second case you could store the GetPath value temporarily at
    the beginning of the script and use it later.<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 28.11.2017 um 13:08 schrieb Bart
      Visser:<br>
    </div>
    <blockquote type="cite"
      cite="mid:etPan.5a1d5369.327b23c6.7cb@me.com">Hi Chris
      <div><br>
      </div>
      <div>If I remember correctly, this could be a problem of Finale
        2014d. After programmatically switching to another app and than
        back, Finale doesn’t get the focus back (it can’t find the menu,
        document, etc.). I had the same thing with a Keyboard Meastro
        macro. There is no fix except manually switching to Finale. I
        think it’s solved in Finale 25 (haven’t run into the problem)
        but I haven’t tested it.</div>
      <div><br>
      </div>
      <div>Cheers,</div>
      <div><br>
      </div>
      <div>Bart</div>
      <div><br>
      </div>
      <div><br>
        <br>
        <p class="gmail_quote" style="color:#000;">Op 28 november 2017
          om 13:03:53, Simon Leclerc (<a href="mailto:simon@prodsl.ca"
            moz-do-not-send="true">simon@prodsl.ca</a>) schreef:</p>
        <blockquote type="cite" class="gmail_quote"><span>
            <div style="word-wrap: break-word; -webkit-nbsp-mode: space;
              line-break: after-white-space;" class="">
              <div>
                <title></title>
                Hi Chris,
                <div class=""><br class="">
                </div>
                <div class="">I’m on a Mac (and I speak french).</div>
                <div class="">Do you want to send me your script so that
                  I can
                  check on my side if I see something wrong?</div>
                <div class=""><br class="">
                </div>
                <div class="">I experimented a lot with FCDocuments and
                  path
                  recently…</div>
                <div class=""><br class="">
                </div>
                <div class=""><br class="">
                  <div><br class="">
                    <blockquote type="cite" class="">
                      <div class="">On Nov 28, 2017, at 2:47 AM, Chris
                        <<a href="mailto:marcel.denio@gmail.com"
                          class="" moz-do-not-send="true">marcel.denio@gmail.com</a>>
                        wrote:</div>
                      <br class="Apple-interchange-newline">
                      <div class="">
                        <div text="#000000" bgcolor="#FFFFFF" class="">Hello
                          Jari and
                          all<br class="">
                          <br class="">
                          <span id="result_box" class="" tabindex="-1"
                            xml:lang="en" lang="en"><span class="">A
                              user tells me about a problem of one of my
                              scripts on MAC with the French version
                              2014d.<br class="">
                            </span></span> <span id="result_box"
                            class="" tabindex="-1" xml:lang="en"
                            lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class="">I
                                  could see that this comes from the
                                  function "GetPath"
                                  (FCDocument).<br class="">
                                  <br class="">
                                </span></span></span></span> T<span
                            id="result_box" class="" tabindex="-1"
                            xml:lang="en" lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class=""><span id="result_box"
                                    class="short_text" tabindex="-1"
                                    xml:lang="en" lang="en"><span
                                      class="">hat's what happens :<br
                                        class="">
                                      - L</span></span></span></span></span></span><span
                            id="result_box" class="" tabindex="-1"
                            xml:lang="en" lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class=""><span id="result_box"
                                    class="short_text" tabindex="-1"
                                    xml:lang="en" lang="en"><span
                                      class=""><span id="result_box"
                                        class="short_text" tabindex="-1"
                                        xml:lang="en" lang="en"><span
                                          class="">oading a document in
                                          Finale<br class="">
                                          -
                                          S</span></span></span></span></span></span></span></span><span
                            id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"><span
                              class="">cript execution (no problem)<br
                                class="">
                              -</span></span> <span id="result_box"
                            class="short_text" tabindex="-1"
                            xml:lang="en" lang="en"><span class="">Switch
                              to another
                              application<br class="">
                              - B</span></span><span id="result_box"
                            class="short_text" tabindex="-1"
                            xml:lang="en" lang="en"><span class="">ack
                              to Finale<br class="">
                            </span></span> <span id="result_box"
                            class="" tabindex="-1" xml:lang="en"
                            lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class=""><span id="result_box"
                                    class="short_text" tabindex="-1"
                                    xml:lang="en" lang="en"><span
                                      class=""><span id="result_box"
                                        class="short_text" tabindex="-1"
                                        xml:lang="en" lang="en"><span
                                          class="">-
                                          S</span></span></span></span></span></span></span></span><span
                            id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"><span
                              class="">cript execution :</span></span> <span
                            id="result_box" class="" tabindex="-1"
                            xml:lang="en" lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class="">"GetPath"
                                  return "Untitled (id=1)"</span></span></span></span>
                          <span id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"><span
                              class="">but we have access to the
                              document<br class="">
                              <br class="">
                            </span></span> <span id="result_box"
                            class="" tabindex="-1" xml:lang="en"
                            lang="en"><span class="">Unfortunately
                              according to the user,<br class="">
                              this does not happen every time and
                              working on PC, I can't do more
                              tests.<br class="">
                              <br class="">
                              Best regards<br class="">
                              <br class="">
                              Chris<br class="">
                            </span></span> <span id="result_box"
                            class="short_text" tabindex="-1"
                            xml:lang="en" lang="en"></span><span
                            id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"></span><span
                            id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"></span><span
                            id="result_box" class="short_text"
                            tabindex="-1" xml:lang="en" lang="en"></span><span
                            id="result_box" class="" tabindex="-1"
                            xml:lang="en" lang="en"><span class=""><span
                                id="result_box" class="short_text"
                                tabindex="-1" xml:lang="en" lang="en"><span
                                  class=""><span id="result_box"
                                    class="short_text" tabindex="-1"
                                    xml:lang="en" lang="en"><span
                                      class=""><span id="result_box"
                                        class="short_text" tabindex="-1"
                                        xml:lang="en" lang="en"></span></span></span></span></span></span></span></div>
                        _______________________________________________<br
                          class="">
                        JWLua mailing list<br class="">
                        <a href="mailto:JWLua@jwmusic.nu" class=""
                          moz-do-not-send="true">JWLua@jwmusic.nu</a><br
                          class="">
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br class="">
                      </div>
                    </blockquote>
                  </div>
                  <br class="">
                  <div class="">
                    <div style="word-wrap: break-word;
                      -webkit-nbsp-mode: space; -webkit-line-break:
                      after-white-space;" 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;">
                          <br class="Apple-interchange-newline">
                          <br class="">
                        </span></div>
                      <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;">
                          <br class="">
                        </span></div>
                      <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;">
                          <br class="">
                        </span></div>
                      <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;">
                          Simon Leclerc</span></div>
                      <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;">
                          60, Mirabelle</span></div>
                      <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;">
                          Ste-Agathe-des-Monts, Québec</span></div>
                      <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;">
                          J8C 0W9</span></div>
                      <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;">
                          <a href="mailto:simon@prodsl.ca" class=""
                            moz-do-not-send="true">simon@prodsl.ca</a></span></div>
                      <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;">
                          <br class="">
                        </span></div>
                    </div>
                    <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>
                JWLua mailing list
                <br>
                <a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
                <br>
                <a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
                <br>
              </div>
            </div>
          </span></blockquote>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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>
  </body>
</html>