I already have custom key commands for making notes cue and normal but I’d love to be able to have one that toggles through all the available Scale choices (i.e. Normal, Cue, Grace, Cue Grace, Off).
Thanks!
I already have custom key commands for making notes cue and normal but I’d love to be able to have one that toggles through all the available Scale choices (i.e. Normal, Cue, Grace, Cue Grace, Off).
Thanks!
Theoretically this can be accomplished with a Lua script. Unfortunately I don’t speak Lua.
From some recorded macros I know how to set a property, though.
If somebody can tell us how to implement the pseudo-code line app:readProperty(kEventScale) this code is supposed to work, it cycles through the scale values.
local app=DoApp.DoApp()
local currentScale = app:readProperty(kEventScale)
if currentScale == false {
app:doCommand([[UI.InvokePropertyChangeValue?Type=kEventScale&Value=string: "kNormal"]])
} else if currentScale == "kNormal" {
app:doCommand([[UI.InvokePropertyChangeValue?Type=kEventScale&Value=string: "kCue"]])
} else if currentScale == "kCue" {
app:doCommand([[UI.InvokePropertyChangeValue?Type=kEventScale&Value=string: "kGrace"]])
} else if currentScale == "kGrace" {
app:doCommand([[UI.InvokePropertyChangeValue?Type=kEventScale&Value=string: "kCueGrace"]])
} else {
app:doCommand([[UI.InvokePropertyChangeValue?Type=kEventScale&Value=false]])
}
I do speak Lua! Unfortunately, the current Dorico scripting API is not capable of reading properties like that.
Bummer! ![]()
Toggles of roughly this type (although still without any access to a property’s actual state) are possible with the ConsoleTools framework. I just used my personal tool for cycling through scale types today.
The documentation includes an appendix that gives some pointers on how to write a custom property toggle tool.
Thank you for chiming in, Alexander.
I saw your contribution to Dorico Scripting on your website, but although I speak fluently Swift and AppleScript this is all Greek (in German we say Bohemian Villages) for me.