How do I get selected channel indexes?
I can get the names of all the currently selected channels in a document with:
app.activeDocument.activeChannels;
But sometimes a document has multiple channels with the identical name. So when I perform actions based on the channels returned this way, I can operate on the wrong channel - a channel that was not selected, but had the same name as one that was selected.
Is there a way to get the indexes of every selected channel, rather than the names?
(Probably not relevant, but I'm actually in Applescript, but this doesn't seem to be in the Applescript dictionary, so I'm actually calling the Javascript at the top
set theChannels to do javascript "app.activeDocument.activeChannels;")
Thanks,
Tom.
