[JW Lua] Change Score Name Insert

Chris marcel.denio at gmail.com
Tue Dec 18 09:05:45 CET 2018


Hello Nick

That's an idea :
(I do not use PARTID_CURRENT because it may be necessary to save the part)

-------------------------------------
local parts = finale.FCParts()
parts:LoadAll()
local p = parts:GetCurrent()

local args = finale.FCString()
args.LuaString = "newName"
local hasCustomText = p:HasCustomText()

if p:SaveCustomTextString(args) then
     if not hasCustomText then p:Save() end
end
-------------------------------------

But I have not found a way to update the title bar.

Best regards

Chris




More information about the JWLua mailing list