We have a microscope that takes pictures with data in only one color channel depending on what filter is in place. We then have to manually copy the data from each channel to a master to get a multi-color image. I’d like to script that but I’m having a problem pasting into a specific channel. I can get the data out of the original and I can make a new image put when it pastes it puts the data in every color channel.
How can I tell Photoshop to only paste the data in, say, the green channel?
Here’s what I have so far. I’ve hard coded the file name for testing:
tell application "Adobe Photoshop CS2"
activate
set x to the width of the current document
set y to the height of the current document
split channels of the current document
close document "jmDB4 sl08.tif.Blue" without saving
close document "jmDB4 sl08.tif.Red" without saving
select all of document "jmDB4 sl08.tif.Green"
copy
make new document with properties {resolution:300, width:x as inches, height:y as inches}
paste (channel "green" of layer 1 of the current document)
end tell
Any suggestions? Using duplicate didn’t work as it only duplicates to the end of the channels and puts the data in the alpha channel.
Thanks!