Skip to content

Commit 41f1f48

Browse files
committed
switch to most common configuration
1 parent 4e9d0d6 commit 41f1f48

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

samples/process_all_documents.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ function plugindef()
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.
8-
finaleplugin.HandlesUndo = true
8+
finaleplugin.HandlesUndo = false
99
finaleplugin.Notes = [[
1010
This script demonstrates how to process all open documents or batch process a list of files with an iterator.
1111
The SwitchTo/SwitchBack functions automatically manage the Undo blocks per document, based on the NoStore
@@ -16,7 +16,7 @@ function plugindef()
1616
end
1717

1818
local shift_amount = 144
19-
local use_iterator = true
19+
local use_iterator = false
2020
local use_files = false
2121
local files = (function()
2222
local retval = finale.FCStrings()
@@ -68,8 +68,6 @@ local function move_expression_baseline()
6868
end
6969
end
7070

71-
finenv.StartNewUndoBlock("Explict changes", false)
72-
7371
-- this change is suppressed if either NoStore or HandlesUndo is true
7472
-- otherwise, it creates a separate undo entry
7573
move_expression_baseline()

0 commit comments

Comments
 (0)