<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>