Laissez vibrer on/off - scripting problem

I wrote two macros for switching laisser vibrer ties on and off. Selecting a note and executing the script “on” works, but doing the same for “off” leaves the tie on the note although it gets switched off in the properties.

Laisser-Vibrer on:

local app=DoApp.DoApp()
app:doCommand([[UI.InvokePropertyChangeValue?Type=kNoteEndHasLVTie&Value=string: "true"]])

Laisser-Vibrer off:

local app=DoApp.DoApp()
app:doCommand([[UI.InvokePropertyChangeValue?Type=kNoteEndHasLVTie&Value=string: "false"]])

Use this instead for the “off” script:

local app=DoApp.DoApp()
app:doCommand([[UI.InvokePropertyEnableSwitch?Type=kNoteEndHasLVTie&Value=false]])

Thank you Daniel, it works - of course :wink: