[JW Lua] Deleting groups...

Simon Leclerc simon at prodsl.ca
Sun Aug 22 17:21:41 CEST 2021


Hi to all,

I’m trying to delete a group and it does not seem to work.
I can edit the parameters fine but impossible to delete it.

Am I missing something? Another class that needs to be updated for it to take effect?

Thanks for any input :)


if finenv.FinaleVersion >= 2011 then

  groups = finale.FCGroups(0, 0)
  groups:LoadAll()

  for g in each(groups) do

    if g:GetItemID() == 18 then

      g:DeleteData()

    end
  end

  groups:SaveAll()
end





¯\_(ツ)_/¯

Simon Leclerc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jwmusic.nu/pipermail/jwlua_jwmusic.nu/attachments/20210822/df181cee/attachment.html>


More information about the JWLua mailing list