Photoshop Channels help
Photoshop Channels help
- Subject: Photoshop Channels help
- From: "Timothy K. Wilkinson" <email@hidden>
- Date: Wed, 09 Nov 2005 09:31:43 -0500
- Thread-topic: Photoshop Channels help
I'm trying to create a script that will copy the data from a single channel
in a document and then paste it in the same channel only in a new document.
We do this a lot with images taken on a microscope using red, green and blue
filters.
I've been able to spilt the original into channels, make a new document and
then paste the data into that document. The problem is that I only want to
paste the data into the green channel but it pastes it in every channel.
Does anyone know how to tell Photoshop to only paste into a certain channel?
I've tried setting the visible of the other channels to false but that
hasn't worked.
Here's the script. The document values are hard coded 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 help would be greatly appreciated. I think I've tried just about every
combination I can think of.
Thanks!
Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden