<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
Robert,<br>
<br>
the following simple "Do nothing, except save" script on the
attached score makes an accidental appear on the layer 2 note in
measure 3:<br>
<br>
local region=finale.FCMusicRegion()<br>
region:SetFullDocument()<br>
local e<br>
for e in eachentrysaved(region) do <br>
end <br>
<br>
Is this the expected behaviour?<br>
It may not be best practice to use the "TieBackwards /Tie End" flag
to hide the accidentall as the tie comes from another layer.<br>
However, eachentrysaved should not remove the TieBackwards flag
either.<br>
<br>
When running the loop with eachentry, everything remains like it is.
<br>
(tested with RGP Lua 0.66 and 0.73)<br>
<br>
Jan <br>
<br>
</body>
</html>