<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Do they get a crash or an error message? <br>
Did you have a chance to check yourself with the Finale document
where the crash occured?<br>
<br>
I have just quickly browsed through your script to see if I find any
classes/methods that I remember to be able to cause crashes.<br>
I would recommend to put a nil check after
smartshape=mark:CreateSmartShape() (i.e. add "if smartshape then"
...) <br>
This can return nil in some cases and would AFAIK produce an error
message on Windows (but probably not a crash - I am not sure).<br>
<br>
I noticed that "staves" in the function apply are not used.<br>
<br>
In one of the first messages that I exchanged with Jari he
recommended to more or less check everything for nil.<br>
And a few years later I can say ... yes, that was a very good
recommendation. Especially if you deal with slightly corrupted or
older Finale documents.<br>
<br>
I like your preview button :-)<br>
<br>
Jan<br>
<br>
<div class="moz-cite-prefix">Am 03.12.2019 um 16:28 schrieb Chris:<br>
</div>
<blockquote type="cite"
cite="mid:900f45eb-764e-ce31-1fc5-0be985944d52@gmail.com">Here is
the information :
<br>
<br>
The 2 users have version 0.54
<br>
User with a lot of crashes -> Finale 26.0.1 fr / OSX Mojave
10.14.5
<br>
User with few crashes -> Finale 26.2.1 / OS 10.14.6
<br>
<br>
Chris
<br>
<br>
_______________________________________________
<br>
JWLua mailing list
<br>
<a class="moz-txt-link-abbreviated" href="mailto:JWLua@jwmusic.nu">JWLua@jwmusic.nu</a>
<br>
<a class="moz-txt-link-freetext" href="http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu">http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu</a>
<br>
</blockquote>
<br>
</body>
</html>