[JW Lua] Deleting a measure number region

Aaron Sherber aaron at sherber.com
Tue May 7 02:37:47 CEST 2024


Ah, that's it, thanks.

Aaron.






On Mon, May 6, 2024 at 8:30 PM Robert Patterson <robert at robertgpatterson.com>
wrote:

> The "Clear" verb simply clears that item from the collection. To remove
> anything from the document, you have to call the "Delete" verb (usually
> DeleteData.) Removing an item from the collection or from the document are
> discreet, unrelated operations.
>
> On Mon, May 6, 2024 at 7:01 PM Aaron Sherber <aaron at sherber.com> wrote:
>
>> Hi all,
>>
>> I'm probably missing something obvious, but how do I delete a measure
>> number region?
>>
>> This doesn't work -- when I look at the regions in the document, they're
>> all still there:
>>
>> local r = finale.FCMeasureNumberRegions()
>> r:LoadAll()
>> r:ClearItemAt(0)
>> r:SaveAll()
>>
>> This doesn't even work:
>>
>> local r = finale.FCMeasureNumberRegions()
>> r:LoadAll()
>> r:ClearAll()
>> r:SaveAll()
>>
>> Thanks,
>> Aaron.
>>
>>
>>
>> _______________________________________________
>> JWLua mailing list
>> JWLua at jwmusic.nu
>> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20240506/aa1a7df3/attachment.htm>


More information about the JWLua mailing list