<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks Robert.<div class=""><br class=""></div><div class="">The “GetItemID” works fine when invoked.</div><div class="">I’ll try what you suggest.<br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div class=""><span style="font-style: normal;" class=""><br class="Apple-interchange-newline"><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div class=""><span style="font-style: normal;" class=""><br class=""></span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">¯\_(</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "MS Gothic"; font-size: 16px;" class="">ツ</span><span style="text-align: -webkit-auto; -webkit-text-decorations-in-effect: none; font-family: "Times New Roman", serif; font-size: 16px;" class="">)_/¯</span></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><span class="Apple-style-span" style="font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; border-collapse: separate; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class="">60, Mirabelle</div><div class="">Ste-Agathe-des-Monts, Québec</div><div class="">J8C 0W9</div><div class=""><a href="mailto:simon@prodsl.ca" class="">simon@prodsl.ca</a></div></div></span></div></div><div style="font-family: Helvetica; font-style: normal; font-weight: normal; font-size: 12px;" class=""><br class=""></div></div></span><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; font-variant-ligatures: normal; font-variant-position: normal; font-variant-numeric: normal; font-variant-alternates: normal; font-variant-east-asian: normal; line-height: normal; orphans: 2; widows: 2;"><br class="Apple-interchange-newline" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;"></div>
</div>
<div><br class=""><blockquote type="cite" class=""><div class="">On August 22, 2021, at 12:50, Robert Patterson <<a href="mailto:robert@robertgpatterson.com" class="">robert@robertgpatterson.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">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 class=""></div><br class=""><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" class="">robert@robertgpatterson.com</a>> wrote:<br class=""></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" class="">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" class="">this script </a>works.<br class=""></div><br class=""><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" class="">simon@prodsl.ca</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="">Hi to all,<div class=""><br class=""></div><div class="">I’m trying to delete a group and it does not seem to work.</div><div class="">I can edit the parameters fine but impossible to delete it.</div><div class=""><br class=""></div><div class="">Am I missing something? Another class that needs to be updated for it to take effect?</div><div class=""><br class=""></div><div class="">Thanks for any input :)</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">if finenv.FinaleVersion >= 2011 then</div><div class=""><br class=""></div><div class="">  groups = finale.FCGroups(0, 0)</div><div class="">  groups:LoadAll()</div><div class=""><br class=""></div><div class="">  for g in each(groups) do</div><div class=""><br class=""></div><div class="">    if g:GetItemID() == 18 then</div><div class=""><br class=""></div><div class="">      g:DeleteData()</div><div class=""><br class=""></div><div class="">    end</div><div class="">  end</div><div class=""><br class=""></div><div class="">  groups:SaveAll()</div><div class="">end</div><div class="">
<div dir="auto" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; text-decoration: none;" class=""><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" class=""><div class=""><div class=""><span style="font-style:normal" class=""><br class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div class=""><span style="font-style:normal" class=""><br class=""></span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px" class=""><span style="font-family:"Times New Roman",serif;font-size:16px" class="">¯\_(</span><span style="font-family:"MS Gothic";font-size:16px" class="">ツ</span><span style="font-family:"Times New Roman",serif;font-size:16px" class="">)_/¯</span></div><div style="font-family:Helvetica;font-style:normal;font-weight:normal;font-size:12px" class=""><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" class=""><div class=""><div class=""><br class=""></div><div class="">Simon Leclerc</div><div class=""><br class=""></div></div></span></div></div></span></div></div></div></div>_______________________________________________<br class="">
JWLua mailing list<br class="">
<a href="mailto:JWLua@jwmusic.nu" target="_blank" class="">JWLua@jwmusic.nu</a><br class="">
<a href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu" rel="noreferrer" target="_blank" class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a><br class="">
</blockquote></div>
</blockquote></div>
_______________________________________________<br class="">JWLua mailing list<br class=""><a href="mailto:JWLua@jwmusic.nu" class="">JWLua@jwmusic.nu</a><br class="">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu<br class=""></div></blockquote></div><br class=""></div></body></html>