Pro Tools and AppleScript menu item selection help

This is my first post on the forum so if this is not the right place to post it please delete it.
I've been using keyboard for a year now and I'm still figuring things out. I've created a couple of macros but when it comes to AppleScript I honestly know nothing.
I downloaded UI Browser to search for the menu items and get their names and I'm seeking for help to implement those on a AppleScript that helps me to select a menu item on a pop window on Pro Tools (Audiosuite plugin)
Here's what I'm trying to create:

Pro Tools has this pop up window for Audiosuite plugins. This specific plugin sends the audio file to another app (Izotope RX) but that's another story.
I've been trying to create macros that selects specific menu itens on the pop window Audiosuite but I've never managed to do that correctly

Screen Shot 2025-06-25 at 07.35.44

I've managed to get their names on UI Browser:

RED CIRCLE:
pop up button "Processing Output Mode" of window "Audio Suite: RX 9 Connect"
pop up button 5 of window 1

GREEN CIRCLE:
pop up button "Processing Input Mode" of window "Audio Suite: RX 9 Connect"
pop up button 6 of window 1

BLUE CIRCLE:
pop up button "input mode" of window "Audio Suite: RX 9 Connect"
pop up button 1 of window 1

Each of these menus items has some options that I would like to select. Basically it has two to three options, like this:

Screen Shot 2025-06-25 at 07.14.44

So for instance: I want to create a macro that either selects Multi Input Mode or Mono Mode
(My idea is to create a single tap hot key for Mono Mode and two taps for Multi Input mode. The two tap hot key trigger I can create. I've downloaded a macro here on the forum wich helped me with that.)
My problem is with the applescript. I need a applescript that select specific menu items based on what is already selected, because this pop up window when closed remembers the last selected item. And I need to constantly change this based on what type of audio file I'm working (mono or stereo)
So is a tedious work to do this multiple times a day
Can someone help me with this please?

1 Like

Hi! I'm not in my studio now but i've built essentially exactly this, will share later once i'm at my studio computer.

2 Likes

Hi Evan! Nice to see a Pro Tools / KM user here! You can imagine how tedious it becomes to change these settings on a big session lol
I appreciate :slight_smile:

Hey @claudioferrarijr here's the macros that I use for quickly setting audiosuite input / output processing parameters in pro tools. These work for the frontmost audiosuite window in Pro Tools, and work with any plugin (as long as these input/output options are available)

Audiosuite Input Output Macros.kmmacros (28.7 KB)

The method they use is what i've found to be the most foolproof dealing with clicking any UI in pro tools,

As you can see in the attached macros and screenshots below, I use Applescript to return the position of the UI element, and then click the UI element using the native keyboard maestro Click with the coordinates saved in the variable, and then using the arrow keys and letters to navigate the menu to the desired setting.

image

image

I'm not doing it in these macros, but you can also return the value of the button to determine if it needs to be changed, or to make a "toggle" macro, with an applescript like this, and a conditional checking that variable for whatever state you are looking for.

image

Hope this is helpful!

Hi @Evan_Mangiamele
Sorry for the delay. Thank you so much for the script. It took me a while to figure it out, since I usually don't let the RX Connect always opened (yeah, my bad i know) but in the end everything was working like a charm.
I have a question:

I was wondering if this could be possible. Do you think I could 'easilly' change this script so it can check if the Multi Input mode and Clip By Clip is already selected or not? I'm totally new on AppleScripts

Yup, just modify the pop up button name to match the UI element you would like to return the value of:

so if you swap the line

tell pop up button "input mode"

with

tell pop up button "Processing Output Mode"

and

tell pop up button "Processing Input Mode"

Those applescript will return the value of those UI elements to a variable in Keyboard maestro. You could also return all 3 in an applescript, but i find the simplicity of keeping these as separate small applescript makes them easier to troubleshoot and modify :slight_smile: