No internet connection
  1. Home
  2. How to

How to automate Bounce to Disk

By Jonathan Grossman @Jonathan_Grossman
    2020-04-22 10:39:16.058Z
    How would I grab the name of the session, add the text , NSA_V, bounce to disk and then automatically open the folder that those files landed into?
    Solved in post #2, click to view
    • 5 replies
    1. There are quite a few examples around the forum on how to automate the Bounce to Disk dialog.

      Here's one from @Andrew_Scheps:
      https://forum.soundflow.org/-1564#post-26

      This is one from me:
      https://forum.soundflow.org/-21

      Here's a full search on all the various posts that exist:
      https://forum.soundflow.org/-/search?q=bounce

      You should get started by trying to copy/paste and gather what you can find, and then we'll help you when you get stuck :)

      ReplySolution
      1. I'm going through Andrew's extensive code and it is amazing what he has done, but my workflow is much different. Imagine I can spend a day trying to figure it out, but perhaps I can ask a few specific questions to start. Here are modifications I'd like to make to his code that I can't figure out myself yet:

        1. I have my bounced tracks at the top of the session, not bottom.
        2. I have them bounced into the BOUNCED FILES folder, and then within another folder named "SESSION_NAME_MIXES_AND_STEMS_V?. Would be great to have the macro create that folder with that name and, name the mix that name and put it there.
          3)How do I take the session name and populate the bounced file name while adding _NSA_V? where ? is the incremental version number
        3. I'd like to have one macro that would select FULL MIX as the output path and completely other duplicate macro for all the stems. obviously 2 different buttons on the SD.
        4. his script duplicates the playlist of the existing mix, but I really only need the new mix printed to a new track with the updated revision name both in the track name and file name.
        1. In reply tochrscheuer:

          Hi Christian:
          Kitch has been amazingly helpful and fun to work with as well! We created a bunch of macros. However, I decided to take some off his plate and figure them out on my own. I'm working on a bounce to disk macro (see below). I'd like to create a variable where if the BOUNCE SOURCE is only •FULL_ST_MIX• then it would add that to title of the bounced file e.g. (session name)_FULL_ST_MIX_NSA_V

          sf.keyboard.press({
          keys: "alt+cmd+b",
          });
          var sessionPath = sf.ui.proTools.mainWindow.sessionPath;
          var sessionName = sessionPath.split('/').slice(-1)[0].split('.').slice(0, -1).join('.');

          sf.keyboard.press({
          keys: "tab, right, shift+minus, shift+n, shift+s, shift+a, shift+minus, shift+v",
          });

          sf.wait({
          intervalMs: 1007,
          

          });

          sf.ui.proTools.windows.whoseTitle.is('Bounce').first.buttons.whoseTitle.is('Choose...').first.elementClick();

          1. Hi Jonathan.

            If you're looking to script these things yourself, you should definitely take a look at the links I sent above.
            To learn more about how to automate popup windows, and not use Keyboard simulation (which almost always can be done in a better way with SF), I highly recommend starting with macros and then converting to scripts.
            In these two videos I walk through how to get started with UI automation - and this also includes how to set values in text fields for example:

        2. S
          Sebastian @Sebastian
            2020-04-27 14:15:57.690Z

            Hi, I tried to figure out how to choose a diffrent directory folder in the bounce to disk menu but unfortunatly couldn't get my head around it. Could you let me know the script for: click on the CHOOSE... button and then set a specific folder in the main session folder an hit open?