Skip to content

Commit f44f7c0

Browse files
committed
search one folder higher (in case the musicxml is in the exports folder).
1 parent bc9fc62 commit f44f7c0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/musicxml_massage_export.lua

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function plugindef()
44
finaleplugin.NoStore = true
55
finaleplugin.Author = "Robert Patterson and Carl Vine"
66
finaleplugin.Copyright = "CC0 https://creativecommons.org/publicdomain/zero/1.0/"
7-
finaleplugin.Version = "2.0.1"
7+
finaleplugin.Version = "2.5"
88
finaleplugin.Date = "October 9, 2024"
99
finaleplugin.LoadLuaOSUtils = true
1010
finaleplugin.CategoryTags = "Document"
@@ -443,11 +443,16 @@ function process_one_file(input_file)
443443
if exist(try_path) then return try_path end
444444
try_path = path .. filename .. ".mus"
445445
if exist(try_path) then return try_path end
446+
try_path = path .. "../" .. filename .. ".musx"
447+
if exist(try_path) then return try_path end
448+
try_path = path .. "../" .. filename .. ".mus"
449+
if exist(try_path) then return try_path end
446450
return nil
447451
end)()
448452

449453
local document, close_required, switchback_required
450454
if document_path then
455+
print("found doc path: " .. document_path)
451456
document, close_required, switchback_required = open_finale_document(document_path)
452457
end
453458

0 commit comments

Comments
 (0)