View Single Post
  #6  
Old 06-09-2021, 06:28 AM
JR Fountain JR Fountain is offline
Member
 
Join Date: Dec 2000
Location: Toronto, Canada
Posts: 453
Default Re: Modifying Groups...

Hey Lucas,

Ya for sure. It'll modify the first group. See below.

J.R.



//Activate Pro Tools
sf.ui.proTools.appActivateMainWindow();

//Modify Group(s)
sf.keyboard.press({
keys: "ctrl+cmd+g",
});

//Define reference to window
var win = sf.ui.proTools.windows.whoseTitle.is('Modify Groups').first;

//Click the "Tracks" tab
win.children.whoseTitle.startsWith("Tracks").first .elementClick();

//Wait for the "Replace" button to appear (finalize moving to the Tracks tab)
win.buttons.whoseTitle.startsWith('Replace').first .elementWaitFor();

//Now click that Replace button
win.buttons.whoseTitle.startsWith('Replace').first .elementClick();

//Click OK
win.buttons.whoseTitle.startsWith('OK').first.elem entClick();

//Wait for window to close
win.elementWaitFor({ waitForNoElement: true });
__________________
J.R. Fountain
credits: www.imdb.com/name/nm0288354/
system: Mac Studio Ultra, 128 GB RAM, macOS 13.6.1, MTRX Studio, S3 / Dock, PT Ultimate 2023.12
Reply With Quote