Hello everyone.
I'm using a script that assigns the plugin "Save Setting As ..." to a button on a Streamdeck.
sf.ui.proTools.appActivateMainWindow();
const pluginWindow = sf.ui.proTools.windows.whoseTitle.startsWith("Plug-in:").first
//Raise the Plugin Window
pluginWindow.elementRaise();
//Plug-In Save Setting As
sf.ui.proTools.windows.first.popupButtons.whoseTitle.is("Settings menu").first.popupMenuSelect({
menuPath: ["Save Settings As..."],
});
I recently bought a new Mac and changed the OS from Mojave to Big Sur 11.6, but I'm having trouble with the behavior of this script changing.
Previously, when the Save dialog was opened, "Untitled" or the name of the last selected plugin setting was selected in the text field and highlighted in blue, allowing me to enter new text immediately.
However, after becoming Big Sur, this text was opened without being selected, so I had to select the text myself.
I contacted Avid's support portal, but it seems that it is unlikely that this behavior will be improved immediately because it may be a problem with the OS itself, not Pro Tools.
So, I'd like to update this script to make it behave as before, but even if I try Click UI Element etc., the behavior of "select all the text in the text field of the Save dialog" does not work...
Can anyone solve this?
- Christian Scheuer @chrscheuer2021-12-18 12:46:21.348Z
Try using the
navigateToInDialog
from here:- MMasayoshi Sugai @Masayoshi_Sugai
Thank you Christian!!
I still don't understand how to use navigateToInDialog, so I could do what I wanted to do with Mouse Click Relative to UI Element for the time being. It looks a bit rough and I don't know if it works in many situations. ..
sf.ui.proTools.appActivateMainWindow(); const pluginWindow = sf.ui.proTools.windows.whoseTitle.startsWith("Plug-in:").first //Raise the Plugin Window pluginWindow.elementRaise(); //Plug-In Save Setting As sf.ui.proTools.windows.first.popupButtons.whoseTitle.is("Settings menu").first.popupMenuSelect({ menuPath: ["Save Settings As..."], }); sf.ui.proTools.windows.whoseTitle.is("Save").first.getElement("AXTitleUIElement").mouseClickElement({ relativePosition: {"x":0,"y":59}, anchor: "MidCenter", }); sf.keyboard.press({ keys: "down", }); sf.keyboard.press({ keys: "shift+up", });
I'll take the time to try the method you taught me later.
Thank you always so much!!!Christian Scheuer @chrscheuer2021-12-18 14:31:02.626Z
Nice, thank you for sharing your own solution as well.