Hello I’d like to do some custom macros with Soundflow (from what I understand this is similar to Keyboard maestro) however I am getting stuck in my specific task. Soundflow uses JavaScript, however it seems to not be able to click on the Filter by pitch dialogue. Or at least I haven’t been able to make it work. Does anyone know if Dorico can be scripted to click dialogue buttons (like the Filter by pitch dialogue note pitch selection or others). Here is a link to my Soundflow topic, and I’ll paste the script here for anyone who wants to look at it.
//Select All
sf.keyboard.press({
keys: "cmd+a",
});
//Open Filter By Pitch
sf.ui.app('com.steinberg.dorico35').menuClick({
menuPath: ["Edit","Filter","Notes by Pitch..."],
});
//Naturals: C
//Select Note
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXMenuButton").whoseTitle.is("C").first.elementClick();
//Select Modifer
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXMenuButton").whoseTitle.is("Natural").first.elementClick();
//Confrim In Octave is checked
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.checkBoxes.whoseTitle.is("in octave").first.checkboxSet({
targetValue: "Enable",
});
//Change Octave to value
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXIncrementor").whoseTitle.is("").first.elementSetTextFieldWithAreaValue({
value: "-1",
});
//Select Add
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.buttons.whoseTitle.is("Add").first.elementClick();
// D
//Select Note
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXMenuButton").whoseTitle.is("D").first.elementClick();
//Select Modifer
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXMenuButton").whoseTitle.is("Natural").first.elementClick();
//Confrim In Octave is checked
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.checkBoxes.whoseTitle.is("in octave").first.checkboxSet({
targetValue: "Enable",
});
//Change Octave to value
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.children.whoseRole.is("AXIncrementor").whoseTitle.is("").first.elementSetTextFieldWithAreaValue({
value: "-1",
});
//Select Add
sf.ui.app("com.steinberg.dorico35").windows.whoseTitle.is("Filter Notes by Pitch").first.buttons.whoseTitle.is("Add").first.elementClick();