Skip to content

Commit 67e390f

Browse files
committed
fix typo in comment
1 parent 41f1f48 commit 67e390f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/process_all_documents.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
function 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.
@@ -84,7 +84,7 @@ else
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

0 commit comments

Comments
 (0)