No internet connection
  1. Home
  2. How to

Create Track Stack Preset -> Folder vs Sum

By Justin Krol @Justin_Krol
    2025-06-24 15:03:51.705Z

    Hi @Kitch!

    Say, is there a command in the Logic package to create a specific type of track stack? I'm constantly having to use both folder and sum stacks in any given session and I've tried a number of things to make my own script to pick between the two (so I can have two stream deck buttons for track stacks (Folder Stack / Sum Stack). Let me know your thoughts, but it appears that maybe the radio button is an issue...?

    • 4 replies
    1. Kitch Membery @Kitch2025-06-24 16:45:59.512Z

      Hi @Justin_Krol

      Great suggestion for an addition to the Logic Pro package!

      Here is a script that should get the job done till I get around to adding it to the package.

      const stackType = "Folder stack" // "Folder stack" or "Summing stack"
      
      const logic = sf.ui.logic;
      logic.mainWindow.invalidate();
      logic.appActivateMainWindow();
      
      logic.menuClick({ menuPath: ["Track", "Create Track Stack…"] });
      
      sf.ui.logic.mainWindow.sheets.first.elementWaitFor();
      
      const targetRadioButton = sf.ui.logic.mainWindow.sheets.first.getFirstWithTitle(stackType);
      const createButton = sf.ui.logic.mainWindow.sheets.first.getFirstWithTitle("Create");
      
      targetRadioButton.elementClick();
      createButton.elementClick()
      
      sf.ui.logic.mainWindow.sheets.first.elementWaitFor({
          waitForNoElement: true,
      });
      
      1. S
        In reply toJustin_Krol:
        SoundFlow Bot @soundflowbot
          2025-06-24 16:46:06.312Z

          This issue is now tracked internally by SoundFlow as SF-2050

          1. JJustin Krol @Justin_Krol
              2025-06-25 15:13:10.495Z

              Amazing -- works flawlessly. Thanks as always!

              1. Kitch Membery @Kitch2025-06-25 16:05:35.117Z

                Awesome!!! Enjoy! :-)