<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Thanks, Chris, your script works fine.</p>
    All dummy definitions were completely unused staff styles - all with
    the default settings.<br>
    <p>I have no idea where the broken list came from. But as I have had
      this behaviour in several documents it is something that Jari
      should fix.<br>
    </p>
    Best,<br>
    Jan<br>
    <br>
    <div class="moz-cite-prefix">Am 11.05.2016 um 15:37 schrieb Chris:<br>
    </div>
    <blockquote
      cite="mid:57fc603d-4678-1507-c5e3-ea330daa3b16@gmail.com"
      type="cite">
      <meta http-equiv="content-type" content="text/html;
        charset=windows-1252">
      Hello Jan<br>
      <br>
      <span id="result_box" class="short_text" lang="en"><span class="">The
          problem</span> <span class="">is that</span> <span class="">the
          list index</span> (ItemNo) <span class="">is broken</span><span
          class="">:<br>
          1 2 3 4 5 6 7 8 9 10 .... 13 .... 20 ... 25 ......<br>
          But why ???<br>
          <br>
          With this script, you retrieve the list  (66 is your last
          index) :<br>
          <br>
          ---------------------------------------------<br>
          for i =1,66 do<br>
              local namestr=finale.FCString()<br>
              local s=finale.FCStaffStyleDef()<br>
              s:Load(i)<br>
              s:GetName(namestr)<br>
          <br>
              if namestr.LuaString=="" then<br>
                  local name = finale.FCString()<br>
                  name.LuaString = "dummy " .. i<br>
                  s:SetName(name)<br>
                  s:Save()<br>
              end<br>
          end<br>
        </span></span><span id="result_box" class="short_text" lang="en"><span
          class="">---------------------------------------------<br>
          <br>
          Best regards<br>
          <br>
          Chris<br>
        </span></span> <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>