<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    As the online documentation says for AssignTextExpressionDef:<br>
    "The mode for the object must be set to MTOOLMODE_EXPRESSION <b>in
      advance</b>. "<br>
    So you need a SetMode before.<br>
    <br>
    Jan<br>
    <br>
    <div class="moz-cite-prefix">Am 08.11.2015 um 09:04 schrieb Joseph
      Weidinger:<br>
    </div>
    <blockquote
cite="mid:CAN8zVD=9_SipRu94ZNnqcz_SawsHkiMrT2XsyAmpdzOdGRrh8Q@mail.gmail.com"
      type="cite">
      <div dir="ltr">I am creating a new text expression definition
        (ted) and that part works. However it won't assign the metakey
        "a" (which is 65 apparently)
        <div><br>
        </div>
        <div>I try to do this:</div>
        <div>~ ted defined and working great</div>
        <div>
          <div><br>
          </div>
          <div><span style="white-space:pre-wrap">        </span>local ma =
            finale.FCMetatoolAssignment()</div>
          <div><span style="white-space:pre-wrap">        </span>ma:SaveAsKeystroke(65)</div>
          <div><span style="white-space:pre-wrap">        </span>ma:SaveNew()</div>
          <div><span style="white-space:pre-wrap">        </span>ma:AssignTextExpressionDef(ted)</div>
          <div><br>
          </div>
          <div><span style="white-space:pre-wrap">        </span>ted:SaveNew()</div>
          <div><br>
          </div>
          <div>Maybe it has something to do with set mode? I coculdn't
            get anything to work. Help appreciated! Thanks.</div>
          <div><br>
          </div>
          <div><br>
          </div>
        </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>