[JW Lua] Add blank page

Bart Visser bartvisser at me.com
Sat Sep 6 21:20:14 CEST 2014


Hi,

I'm trying to create a blank page, but saving one returns false:

local allPages = finale.FCPages()
allPages:LoadAll()

local firstPage = finale.FCPage()
firstPage:Load(1)
local pageProperties = dumpproperties(firstPage)

local newPage = finale.FCPage()
for k,v in pairs(pageProperties) do
	newPage[k] = v
end

newPage.ItemNo = (allPages.Count + 1)
finale.FCStaffSystems.UpdateFullLayout()
print(newPage:SaveNew(allPages.Count + 1))


Is it my code or is this function not yet available in JW Lua (like the append-function in finale.FCStaves)?

Thanks,


Bart



More information about the JWLua mailing list