JSX solution to clear Pantone info from a spot channel?
I have some files I need to strip Pantone info from the spot channels but keep a similar color in it's place.
Say Pantone Blue or Pantone 301 would show up as an equivalent RGB blue.
These are almost all grayscale files with anywhere from 2 - 20 color channels.
I also need to iterate down the channel list and rename everything in order numerically ie. CLR1,CLR2,CLR3.
I have this part figured out, but I can't find any info on how to strip the Pantone info from the channel.
Just to clarify I'm not talking about the channel name. I'm talking about when you double click on the channel and the
'Spot Channel Options' window pops up.
I've tried changing ChannelType.SELECTEDAREA to see if it would reset it, but that throws an error whenever it hits a Pantone color.
I thought maybe I could duplicate the channel in another new channel and pull the color info from the original channel
but that doesn't seem to work either as I can't get the color info from the Pantone channel, it throws an error as well. Works fine on other channels:
ColorR = docRef.channels.color.rgb.red;
ColorG = docRef.channels.color.rgb.green;
ColorB = docRef.channels.color.rgb.blue;
Error: "Error 8366: This version of the ScriptingSupport does not support custom colors such as PANTONE® colors."
Hopefully someone has experience with this and can give me some ideas, or point me to some info.
Thanks!