No internet connection
  1. Home
  2. Macro and Script Help

How can you duplicate a folder and include the member tracks?

By DJH @DJH
    2022-04-19 20:30:05.389Z

    Title

    How can you duplicate a folder and include the memeber tracks?

    What do you expect to happen when you run the script/macro?

    Wanting a way to "Include All Member Tracks" when duplicating a folder

    Are you seeing an error?

    What happens when you run this script?

    There is no option in the command to include all member tracks when duplicating a folder. Is it possible to modify the script in some way to add this option?

    How were you running this script?

    Other

    How important is this issue to you?

    4

    Details

    {
        "inputExpected": "Wanting a way to \"Include All Member Tracks\" when duplicating a folder",
        "inputIsError": false,
        "inputWhatHappens": "There is no option in the command to include all member tracks when duplicating a folder. Is it possible to modify the script in some way to add this option?",
        "inputHowRun": {
            "key": "-MpfwoFyZNOpBC3X5xGI",
            "title": "Other"
        },
        "inputImportance": 4,
        "inputTitle": "How can you duplicate a folder and include the memeber tracks?"
    }

    Source

    if (!sf.ui.proTools.isRunning) throw `Pro Tools is not running`;
    
    sf.ui.proTools.appActivateMainWindow();
    
    sf.ui.proTools.trackDuplicateSelected();
    
    

    Links

    User UID: 5oOYQAmkSMeJJ8UYzehWUfmvCyr1

    Feedback Key: sffeedback:5oOYQAmkSMeJJ8UYzehWUfmvCyr1:-N02W8aeMQh5Wmy9jn7M

    Feedback ZIP

    • 3 replies
    1. D
      DJH @DJH
        2022-04-20 23:27:15.135Z

        Anyone?

        1. In reply toDJH:

          Hi @DJH,

          You would probably need to script this yourself. You could use general UI automation to accomplish this.
          You can learn more about how to use UI automation to automate PT dialogs here:

          1. DDJH @DJH
              2022-04-23 22:57:57.014Z

              Thanks @chrscheuer . I've actually seen these and had decent success w/ ui automation. ACtually was beginning to script this as you suggested when i discovered the existing dup track command I was asking about here and was curious if I might learn something in the process of utilizing the existing script. But I have since scripted the dup folder track + member track command myself and it's working well.

              Where I've had the most trouble with UI automation is attempting a "Wait for" command for certain windows to appear and disappear, as I've referenced here:

              and here: