<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Hi Robert,</p>
<p>you should use the JW Lua class browser, the online class
documentation and the examples that Jari put on his website to
find this out.</p>
The online class documentation starts here:<br>
<a class="moz-txt-link-freetext" href="http://www.finaletips.nu/frameworkref/annotated.html">http://www.finaletips.nu/frameworkref/annotated.html</a><br>
So you browse to FCTextExpressionDef and search for "Description"
and you will have your solution.<br>
<br>
The same result can be found in the JW Lua class browser:<br>
Go to FCTextExpressionDef and enter "Description" in the Properties
and/or Methods search fields. Then you'll even get a sample code.<br>
<br>
Best,<br>
Jan<br>
<p><br>
</p>
<br>
<div class="moz-cite-prefix">Am 10.05.2016 um 10:44 schrieb Robert
Wildling:<br>
</div>
<blockquote
cite="mid:CAM9gVwQnpsfam7bXxcW=g+4_wszO6qgSpfs5YhHe9_UeC1QVYQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Thank you
for your script, Bart Visser! That is extremly helpful!!!</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">At the
moment I am struggeling with getting the text of the
Description field (of a Expression Tool item). The "JW Lua"
Class Browser offers a GetDescription(argString) method
(without a return value?), but it obviously needs a string to
do something. Instead, I need to read and return the
Description in order to compare it to another string...</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">local str
= finale.FCString()</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">str.LuaString
= [a variable from somewhere else like "DoubleStaffMMR5"]</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">... and
now? </div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Any hint
would be most welcome!</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Thanks!</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><font size="2"><b><font color="#444444">Robert
Wildling</font></b><font
color="#666666"><br>
Göllnergasse 19/30 || A-1030 Vienna</font></font></div>
<div><font size="2"><font color="#666666">ph:
+43 676 6089613<br>
@: <a moz-do-not-send="true"
href="mailto:robertwildling@gmail.com"
target="_blank">robertwildling@gmail.com</a></font></font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="gmail_quote">2016-05-08 18:37 GMT+02:00 Robert
Wildling <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:robertwildling@gmail.com" target="_blank">robertwildling@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Hi, </div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">this
is my first post and also my first day with JW Lua from
a developer point of view. Quite amazing, what can be
done with it!</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Currently
I would like to adapt the awesome DoubleStaffMMR Lua
script that is somewhere out the in the forums. Whenever
this plugin is applied, it creates one (and only one!)
MultiMeasureRest number to a 2-staff-system instruments,
hiding the default settings (which make a MMR appear
twice).</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">The
numbers are created as text expressions saved in the
"Miscellaneous" category. The disadvantage of this
plugin is that it creates a number for each measure, not
checking whether a number already exists as a text
expression. So I would like to fetch all the data that
can be found in the "Miscellaneous" category, check
against the "Description" field (where is says
"DoubleStaffMMR_[number]") and use the existing item, or
only then create a new item.</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">That's
the theory. Now for the practical part: How do I fetch
all items from the "Miscellaneous" category?</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Thanks
for any tips!</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444"><br>
</div>
<div class="gmail_default"
style="font-family:verdana,sans-serif;color:#444444">Greetings,<br>
Robert</div>
</div>
</blockquote>
</div>
<br>
</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>