Solo Safe
Hey!
I have a mashup script (from lots of smart people on here) that puts the selected tracks into a folder. It will color code, route, and make the selected tracks solo-safe, then add them to a group via a searchable window along with making the audio tracks have no input. I am trying to make this a little more robust by being a little forward-thinking so that if, later down the road, I add another track into that same folder, it will do all the above requests but also place the new audio track into the solo safe mode as well. If I use the same script to add the new audio track to the group, everything works except it toggles the solo safe mode for all the tracks. Is there a way to make this an 'if' statement? So if there are tracks already solo-safed, it will skip those tracks and only do the new track. Or is there a better option I'm not aware of?
This is what I am using right now to make the tracks solo-safe.
sf.ui.proTools.selectedTrack.buttons.whoseTitle.is('Solo').first.mouseClickElement({
isShift: true,
isOption: true,
isCommand: true,
});