<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Jari,<br>
      <br>
      thanks for your response and thanks for being back on the list !<br>
      <br>
      SetInDocument() was one of the missing links.<br>
      But unfortunately, it still doesn't work in all cases.<br>
      It only works if a tool was selected before running the plug-in
      that supports a region<br>
      (as the documentation for SetInDocument says: "The region will
      only be visually present if the currently selected tool in Finale
      supports regions.")<br>
      <br>
      So it would be great if you could<b> add a MenuCommand for the
        selection tool</b>.<br>
      Then it would be:<br>
      <br>
          finenv.UI():MenuCommand(finale.MENUCMD_SELECTIONTOOL)<br>
          finenv.Region():SetFullDocument()<br>
          finenv.Region():SetInDocument()<br>
          finenv.UI():MenuCommand(finale.MENUCMD_NOTESPACING )<br>
      <br>
      Best regards,<br>
      Jan<br>
      <br>
      Am 06.07.2015 um 16:36 schrieb Jari Williamsson:<br>
    </div>
    <blockquote cite="mid:559A925A.1070103@mailbox.swipnet.se"
      type="cite">Jan,
      <br>
      <br>
      After finenv.Region():SetFullDocument(), use a subsequent
      SetInDocument() for the region object. I think you need an
      explicit region object for the SetFullDocument+SetInDocument(),
      since SetFullDocument() sets the values internally for the object
      and SetInDocument() applies the object's values on the document
      view.
      <br>
      <br>
      <br>
      Best regards,
      <br>
      <br>
      Jari Williamsson
      <br>
      <br>
      <br>
      On 2015-05-30 21:15, Jan Angermüller wrote:
      <br>
      <blockquote type="cite">Jari,
        <br>
        <br>
        I have a document with no measures selected and would like to
        re-do the
        <br>
        music spacing with:
        <br>
        <br>
        finenv.UI():MenuCommand(finale.MENUCMD_NOTESPACING )
        <br>
        <br>
        As no measures were selected nothing happens when I call the
        script.
        <br>
        <br>
        Now if I insert
        <br>
        finenv.Region():SetFullDocument()
        <br>
        before calling the MenuCommand still nothing happens.
        <br>
        <br>
        Is there anything I can do to tell the menucommand that it shall
        process
        <br>
        the full document ?
        <br>
        Another idea would be to add a notespacing function to
        FCMusicRegion -
        <br>
        like you did with RebarMusic and RebeamMusic.
        <br>
        <br>
        (Making the plug-in "Require selection"-dependent is not a good
        option
        <br>
        in this case as this plug-in will always process the full
        document.)
        <br>
        <br>
        All the best,
        <br>
        Jan
        <br>
        <br>
        <br>
        <br>
        <br>
        _______________________________________________
        <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>
        <br>
      </blockquote>
      <br>
      <br>
      <br>
      _______________________________________________
      <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>
      <br>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jan Angermüller
Jevenstedter Str. 80
22547 Hamburg
Tel. 040 - 28 94 84 82
<a class="moz-txt-link-abbreviated" href="http://www.angermueller.com">www.angermueller.com</a>
</pre>
  </body>
</html>