Skip to main content
Inspiring
September 29, 2011
Question

[AS][CS5] Merge color channels

  • September 29, 2011
  • 1 reply
  • 1258 views

Hi,

In Photoshop I have 4 grayscale files opened, each of them is a color plate for a CMYK file.

When going to the channel pallet, I have the option to choose "Merge Channels".

After doing so, I can choose the color space, and which file go's on which channel.

Does anyone know how to do to trigger this action AppleScript. How do I set the color mode and define which file go's on which channel?

Thanx

Kind regards

John

This topic has been closed for replies.

1 reply

Inspiring
September 29, 2011

Do the individual plate files have the standard naming convention… If so they should sort themselves if I recall correctly… Layers and channels have a merge command… It's been some time since I last did this so Im a bit vague… I'd need to go check…

Inspiring
September 29, 2011

Hi Mark, Yes they do... It would be great to find out how to trigger the function. I have a "split channel" function but there is no "merge channel" function. I did find a "merge" function, but when running it using a list of channel objects, i did receive an error that I only could use spot channels.

I did find a workaround... It's far from pretty... It's so simple that some serieus applescript developer will smile for weeks when they read the code.

First I need to create a new file. Then ...

set the current document to document 1

   

tell the current document

     set current channels to channel 1

     select all

     copy

end tell

   

set the current document to document 5

   

tell the current document

     set current channels to channel 4

     select all

     paste

end tell

And this for all 4 color plates...

But It would be great if I could use the correct function...

Thanx

Inspiring
September 30, 2011

I don't know how to do this in AppleScript, but what I would do in JavaScript if the grayscale images have the correct name is load the cyan image. Convert to multichannel. Load the other images and dupe them over to the cyan document in the correct order. Then convert the multichannel document into CMYK.

I can post the JavaScript if you like.