File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11function plugindef ()
22 finaleplugin .RequireDocument = false
33 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.
55 finaleplugin .NoStore = false
66 -- A true value of HandlesUndo does not prevent the automatic Undo logic in FCDocument/FCLuaIterator from saving changes,
77 -- but it prevents other changes that are not protected by an explicit call to StartNewUndoBlock.
8484 local count = docs :LoadAll ()
8585 print (" got " .. count .. " documents" )
8686 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)
8888 process_document (doc )
8989 doc :SwitchBack (true ) -- true: changes successful (will be saved unless NoStore is true)
9090 end
You can’t perform that action at this time.
0 commit comments