local staffID = finale.FCStaves.Append() if staffID then -- Load the created staff local staff = finale.FCStaff() staff:Load(staffID) -- Set the virtual instrument (in the Score Manager) to violin: staff.InstrumentUUID = finale.FFUUID_VIOLIN staff:Save() end