No internet connection
  1. Home
  2. How to

Behavior of "Save Setting As .." dialog in Big Sur

By Masayoshi Sugai @Masayoshi_Sugai
    2021-12-18 06:37:25.543Z

    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?

    Solved in post #3, click to view
    • 3 replies
    1. Try using the navigateToInDialog from here:

      1. MMasayoshi Sugai @Masayoshi_Sugai
          2021-12-18 13:59:45.884Z

          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!!!

          Reply1 LikeSolution
          1. Nice, thank you for sharing your own solution as well.