Pick Up Path of Folder for Macro - Pro Tools

I wonder if "John" will ever reply.....

I made two new macro's for you. One is another updated script that will open the folder containing the current session file.
The other one is the requested macro that will make a date folder in your Bounced Files folder within the folder that you current session is. If the folder exist it does nothing.

Tell me if these two works for you.

Export Clips To Bounced Files within Date Folder.kmmacros (37.2 KB)
Current ProTools Session Folder.kmmacros (54.8 KB)

2 Likes

Fokke you are fantastic! I will tell “John” no need to reply :slight_smile:

I am traveling this week but will try as soon as I get back this coming Monday. Very excited to try this!

Best,

Ray

Thanks will try them later today to if that works for me.

David

Thanks for making theses macros , today was the first time I had a chance to try it out. The Macro "Export Clips to Bounce Files within Date Folder" worked well, I had to just increase the pause a little(.5) to make it run correctly each time.

Thanks

DJ

Great news!

Thanks David,
Which Pause did you had to increase?

@Fokke Sorry I didn't see this back in May of last year.and didn't answer your question. I will look and see where I increase the pause. and let you know. This was a great KM macro that you made. use it every day .

So @Fokke Again sorry for the 8 month late response , But I had changed both pauses from 0.2 to 0.5

DJ

If by John you were referring to me, then I did reply. :wink:

Thank you so much for this, @Fokke ! Works like a charm!

Just one question for a cherry on top: Is there an easy addition to the script for opening the Bounced Files folder of the current session rather than just the project folder?

Thanks again for these two macros, they're saving me tons of time!

I replaced some actions from the AppleScript for KM actions. Now your wanted macro looks like this:

Current ProTools Session Bounced Files Folder.kmmacros (58 KB)

Macro-Image

Keyboard Maestro Export

3 Likes

Works perfectly! Thank you so much for your help, you're amazing!

Works in Logic Pro too! :clap:t3::clap:t3::clap:t3:

1 Like

Been a while, but worth mentioning that the Search and Replace actions can be replaced by a single Filter action, set to URL Path.

Ah! That's good to know!
Thanks!

Return path to Pro Tools Session.kmmacros (31.2 KB)

1 Like

Hi Fokke, thank you for your macros! I know this is an old thread and maybe some things changed in Pro Tools.
When I tried to execute the "Export Clips To Bounced Files Within Date Folder" it didn't worked.
I tried to investigate wich steps did not work and I think I found the problem. In PT when I select "Choose..." and hit CMD+SHIFT+G this is the path that shows
/Users/Shared/Pro Tools/AAXPlugInCache/
Can you tell me if this is something to do with newer versions of Pro Tools? I'm running PT Studio 2024.6
The patch shouldn't be the Bounced Folder in my Session Folder? Or am I missing something here? I'm not and KM expert so I couldn't find a solution to that. I appreciate your effort and helping us with those macros. The Current Session Folder is amazing and I was looking for that for years! Thank you

KM now has a %FrontDocumentPath% token. Have you tried that to get the initial path of your PT project?

Thank your for the reply. Honestly I'm not quite familiar with Tokens (yet)
I tried to swap the circled token for the one you suggested but it did not work. Is this what you suggested? I'm quite new to KM so excuse me if this is a dumb question
Screen Shot 2025-08-28 at 12.45.52

Try this test macro:

Display Project Path.kmmacros (19 KB)

Macro screenshot

Assuming that displays the correct path to the current project when PT is at the front, then you can grab that parent path via the aforementioned token by placing an action like this at the very start of your macro:

...and then reference that new variable when constructing your path, in the action you highlighted in your screenshot above:

NB: The reason I suggest grabbing that path at the start of the macro is that, in my experience, %FrontDocumentPath% may return nothing if the current front window is a dialog. I don't have PT, so I can't test, but there's no harm in safeguarding against that.

2 Likes

Unfortunately the %FrontDocumentPath% token does not work in ProTools for some reason.

Nowadays I use an applescript for that.
And filter the result into a path that I can use.

Then there is another problem. When you choose your files destination folder you cannot enter the whole path like Noisneil suggests above. We have to navigate to the path. The way I navigated in the macro you just found is by using command-shift-G. "Go To" Then the macro has to Pause Until that dialog pops up so we can enter the path we want. MacOs has slightly changed the behaviour of this "Go To" window and now it does not have a name anymore that KM can recognise. So we have to set a pause by trial and error. Which I don't like because maybe on some hard disks it can be slower. I rather have a decent Pause Until a window with this and that name pops up. Any suggestions here?

So, this is what I have now:

Export to Bounce Folder.kmmacros (34.3 KB)