How to open up multiple files and export all of them from a program (exporting .wav from Ableton Live song projects)?

I am trying to devise a script to open up different files within a program and “export” them. So far I have the ability to “Activate” the program, then basic “move cursor to and click” at the File and Export buttons, with “Pause 1.5 seconds” between them, then press enter to export.

The problem I’m running into is if there is a way to then open up the other projects. This script works for one project, but not others. I was thinking if there is some way to organize which file to open, something like click on the “Open project” button, then have the list sorted by “Last modified” so it would go through all files in a folder or something…

And also how to wait until the project finishes exporting… I have tried “until pixel is not” but if something goes wrong the program keeps going on forever clicking things at a timer.

I was wondering if there might be a simpler way. Any ideas? Thank you for your help!

I have made something similar for Adobe InDesign to export the InDesign files I have selected in the finder to pdf on the desktop.

Using the For Each selection in Finder.
The open the Path variable.
Use the menu actions to export and close the document.

Then it will take the next selected file after this.

Since I do not have Ableton then I can not make a macro for this.

Maybe you can use my macro for InDesign as inspiration.

Keyboard Maestro 8.0.4 “Output to pdf on desktop-v1” Macro

Output to pdf on desktop-v1.kmmacros (10 KB)

1 Like

Thank you very much for your help, I will give it a shot!

Did you ever end up figuring this out


Hey Paul,

@mfc12 hasn't been seen on the forum since 2017, so it's unlikely you'll get an answer.

Take Care,

(Keyboard Maestro Moderator)