<div dir="ltr">Also "GetItemID" is probably always 0. (I think it's a holdover from pre-2011 groups.) There's another value you need to compare with.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 22, 2021 at 11:48 AM Robert Patterson <<a href="mailto:robert@robertgpatterson.com">robert@robertgpatterson.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Try not passing parameters to the FCGroups constructor. The code in <a href="https://github.com/Nick-Mazuk/jw-lua-scripts/blob/master/src/staff_groups_reset.lua" target="_blank">this script </a>works.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Aug 22, 2021 at 10:23 AM Simon Leclerc <<a href="mailto:simon@prodsl.ca" target="_blank">simon@prodsl.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>Hi to all,<div><br></div><div>I’m trying to delete a group and it does not seem to work.</div><div>I can edit the parameters fine but impossible to delete it.</div><div><br></div><div>Am I missing something? Another class that needs to be updated for it to take effect?</div><div><br></div><div>Thanks for any input :)</div><div><br></div><div><br></div><div><div>if finenv.FinaleVersion >= 2011 then</div><div><br></div><div> groups = finale.FCGroups(0, 0)</div><div> groups:LoadAll()</div><div><br></div><div> for g in each(groups) do</div><div><br></div><div> if g:GetItemID() == 18 then</div><div><br></div><div> g:DeleteData()</div><div><br></div><div> end</div><div> end</div><div><br></div><div> groups:SaveAll()</div><div>end</div><div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none"><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div><div><span style="font-style:normal"><br><br></span></div><div><span style="font-style:normal"><br></span></div><div><span style="font-style:normal"><br></span></div><div><span style="font-style:normal"><br></span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-family:"Times New Roman",serif;font-size:16px">¯\_(</span><span style="font-family:"MS Gothic";font-size:16px">ツ</span><span style="font-family:"Times New Roman",serif;font-size:16px">)_/¯</span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px"><span style="font-variant-ligatures:normal;font-variant-numeric:normal;font-variant-alternates:normal;font-variant-east-asian:normal;line-height:normal;border-collapse:separate;border-spacing:0px"><div><div><br></div><div>Simon Leclerc</div><div><br></div></div></span></div></div></span></div></div></div></div>_______________________________________________<br>
JWLua mailing list<br>
<a href="mailto:JWLua@jwmusic.nu" target="_blank">JWLua@jwmusic.nu</a><br>
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br>
</blockquote></div>
</blockquote></div>