<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>From the documentation
      <a class="moz-txt-link-freetext" href="http://www.finaletips.nu/frameworkref/class_f_c_category_def.html">http://www.finaletips.nu/frameworkref/class_f_c_category_def.html</a>:<br>
    </p>
    "Please note that Finale does not allow plug-ins to create or delete
    category definitions."<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 11.05.2016 um 13:56 schrieb Robert
      Wildling:<br>
    </div>
    <blockquote
cite="mid:CAM9gVwSTQ8=DyuZotB6DmyYi-XQGO0-ZiWnz_02Z=NWwU=AJQQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Hi,</div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)">I
          am looking for a way to create a new Expression Category withe
          the name of "unused" (the intention is to move all unused
          textExprDefs and ShaeexprDefs to that category).</div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Starting
          out, I thought, this can only be done via selecting a specific
          category and saving it using "SaveAs" and a new "ItemNo", like
          this:</div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br>
        </div>
        <div class="gmail_default" style=""><span
            style="color:rgb(68,68,68);font-family:verdana,sans-serif">``[lua]</span></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">local dynCat =
            finale.FCCategoryDef()</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">if dynCat:Load(2) then</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    -- get the category name</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    local catName =
            finale.FCString()</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    dynCat:GetName(catName)</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444"><br>
          </font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    -- save it anew</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    dynCat:SaveNew()</font></div>
        <div class="gmail_default" style=""><br>
        </div>
        <div class="gmail_default" style="">     <span
            style="color:rgb(68,68,68);font-family:verdana,sans-serif">--
            shows tha a new item number</span></div>
        <div class="gmail_default" style=""><span
            style="color:rgb(68,68,68);font-family:verdana,sans-serif"> 
              </span><font face="verdana, sans-serif" color="#444444">--
            was generated (65535 ??? looks like an error...)</font><span
            style="color:rgb(68,68,68);font-family:verdana,sans-serif"> </span></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">    print(dynCat:GetItemNo()) </font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">end</font></div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">``</font></div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br>
        </div>
        <div class="gmail_default" style=""><font face="verdana,
            sans-serif" color="#444444">But even though the category is
            assigned a new number (is 65535 an indicator for an error
            here? look strange), no new category was created. And if the
            ItemNo of the original category was changed, a second
            run-through shouldn't work, since Load(2) shouldn't find
            anything at that position... but it does...</font></div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)"><br>
        </div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)">I
          am very confused... any hints and/or help would be much
          appreciated!</div>
        <div class="gmail_default"
          style="font-family:verdana,sans-serif;color:rgb(68,68,68)">Thanks!</div>
      </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>