[JW Lua] ForEachFile - PrintDocument
Chris
marcel.denio at gmail.com
Sun Dec 20 11:55:28 CET 2015
Jari
This script does not work. (with a filename)
But it works with ForEachFileSaved
And dirty document property equals false.
(with a filename error, as it is,
the script print the current document)
-----------------------------------------
local function myfilecallback(doc, filename)
if not doc then return end
local ps = finale.FCPrintSettings()
ps:PrintDocument(doc)
end
local filenames = finale.FCStrings()
local str = finale.FCString()
str.LuaString = "C:\\Users\\..." -- ***** FILENAME *****
filenames:AddCopy(str)
local iterator = finale.FCLuaIterator()
iterator:ForEachFile(filenames, myfilecallback)
-----------------------------------------
Best regards
Chris
More information about the JWLua
mailing list