File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
function plugindef ()
2
2
finaleplugin .RequireDocument = false
3
3
finaleplugin .MinJWLuaVersion = 0.74
4
- -- A true value of NoStore causes all changes to be rolled back and prevent FCDocument instances from being saved.
4
+ -- A true value of NoStore causes all changes to be rolled back and prevents FCDocument instances from being saved.
5
5
finaleplugin .NoStore = false
6
6
-- A true value of HandlesUndo does not prevent the automatic Undo logic in FCDocument/FCLuaIterator from saving changes,
7
7
-- but it prevents other changes that are not protected by an explicit call to StartNewUndoBlock.
84
84
local count = docs :LoadAll ()
85
85
print (" got " .. count .. " documents" )
86
86
for doc in each (docs ) do
87
- doc :SwitchTo (finale .FCString (file_name () .. " " .. doc .ID ), true ) -- true: save current changes
87
+ doc :SwitchTo (finale .FCString (file_name () .. " " .. doc .ID ), true ) -- true: save current changes (unless NoStore or HandlesUndo is true)
88
88
process_document (doc )
89
89
doc :SwitchBack (true ) -- true: changes successful (will be saved unless NoStore is true)
90
90
end
You can’t perform that action at this time.
0 commit comments