Open insert problem
I have a macro that opens a plugin, selects a specific preset and recalls it and then closes it. Only package macro commands. Open insert on track then select insert preset
This script works fine the SECOND time I run it, but on the first time most of the time it says "Could not click track's insert open button. Error invoking AXElement Error cannot complete"
I can't trace what does this. Help please?
- Christian Scheuer @chrscheuer2025-05-05 09:27:57.034Z
Hi Richard,
This error indicates that Pro Tools doesn't respond in time (within macOS' timeout) when you click the button. What happens under the hood is that SF using a macOS API tells Pro Tools that we want to click the button. macOS has a preset timeout for how fast PT should respond to that request. If Pro Tools takes too long, macOS will report back a kAxElementErrorCannotComplete error to SoundFlow, that we then display to you. I believe this timeout is 3 seconds by default.
In this case, most likely, the AudioSuite plugin is a bit slow to load the first time you open it, causing PT to miss the timeout and you to see the error.
You can use any of the techniques here to handle the error more gracefully:
https://soundflow.org/docs/how-to/custom-commands/error-handlingIf it's a macro, you can click the Advanced button on the relevant action and choose "On Error: Continue".
- In reply toRichard_Furch⬆:Chad Wahlbrink @Chad2025-05-05 15:00:31.291Z
Hi, @Richard_Furch,
Adding to what Christian is saying here. Here's a screenshot of how you could adjust the Advanced Properties and Error Handling for the "Open Insert on Track" macro action:
And here's a video of me walking through how to set up a macro like this:
- RRichard Furch @Richard_Furch
Thank you! I'll try some stuff!