Hi, I'm writing a macro to export a file from Audacity. As part of the export process I want to load a template for the mp3 file metadata. It's at this point I can't get KM to use Cmd shift G so I can insert the template location. It does work though if I type it myself on the keyboard. Here are a screencast and my macro.
Don't use hard-coded pauses – use the Pause Until action with a button condition.
If that doesn't solve the problem report back.
You're better off using Select or Show a Menu Item actions instead of Type a Keystroke actions when possible – simulated typed keystrokes and keyboard shortcuts have a certain intrinsic fragility and are easier to accidentally interfere with then menu selections.
Thanks. I've updated the macro with Pause Until actions. Unfortunately, it's getting stuck at the same point. There is no file menu for loading a metadata template so I decided to try using arrow keys and insert text when the Metadata Tags dialog box appears. It only works sometimes. Here's a video of when it did work.
Why aren't you just using the Press a Button action to press [Load...]?
The appended macro works reliably on my macOS 10.12.6 Sierra system with Audacity 3.0.0.
I'm running it from an Audacity Macro Group. If I was running from outside the Audacity context and switching to it I'd use pause-until app is frontmost and pause-until menu item is enabled to manage the switch.