Copy link to clipboard
Copied
I want to use action. so, I want select all channels with the menu bar. so use in multiple files. I use the script for more than 100 files. all files have a different name in channels. i also attache sample of my channels.
Copy link to clipboard
Copied
Try this function:
selectAllChannels();
function selectAllChannels() {
var totCha = activeDocument.channels.length;
var actCha = new Array();
for (var i = (totCha - 1); i >= 0; i--) {
actCha.push(activeDocument.channels[i]);
}
activeDocument.activeChannels = actCha;
};
There may be a faster way with Action Manager code, however, I'm not the one to answer that!
P.S. Actions and scripts are different things. Once installed, the script can be recorded into an action. A custom keyboard shortcut can also be applied to the installed script.