[JW Lua] MenuCommand

Chris marcel.denio at gmail.com
Fri Nov 20 18:30:51 CET 2015


Hello All

This scriptdoesn't always work :

----------------------------
local musicregion = finale.FCMusicRegion()
musicregion:SetFullDocument()
musicregion:SetInDocument ()
print(finenv.UI():MenuCommand(finale.MENUCMD_NOTESPACING))
----------------------------

It's because the selection must be visible for "MenuCommand" (I think)
and "SetInDocument" works if the currently selected tool  supports regions.
I think choose the "selection tool" before "SetInDocument"
but finale.MENUCMD_SELECTIONTOOL doesn't work if the menu tool is hidden.

Is there a solution or do I have to show the "tools menu".

Chris




More information about the JWLua mailing list