<div dir="ltr"><div>Deleting staves has always been a challenge. There are no direct functions that are equivalent to Data Check->File Maintenance. You could, of course, call the menu item from your script, but it would still pop up the dialog box.</div><div><br></div><div>Finale itself (by design) only hides the staff when you "delete" it. I do not know the history behind this design choice, but I'm pretty certain it goes back to version 1.0.</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2024 at 8:14 AM Simon Leclerc <<a href="mailto:simon@sleclerc.ca">simon@sleclerc.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 was wondering if we had any kind of access through RGPLua to the elements of the “File Maintenance” window.</div><div>The reason I’m asking is simple: when one deletes a staff, even if we don’t see it anymore, some elements of the staff are still somehow there. Even when deleting a staff is done manually (without going through a script), if you check the count of staves after, it is the same as before. It’s only when a “Remove Deleted Items” is performed that the clean up will be done (sometimes done when re-opening a file). It has its importance if you want your Page View to be udated properly.</div><div><br></div><div>I checked an Enigma Text Dump output, and some unknown FC Categories are involved in the process.</div><div><br></div><div>Any suggestions?</div><div><br></div><div><br id="m_-8468366247280028472lineBreakAtBeginningOfMessage"><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"><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="color:rgb(0,0,0);font-variant-caps:normal;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;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></span></div></div></span></div></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>