• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Photoshop Channels help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Photoshop Channels help
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: New FireFox 1.5 browser -- applescript implementation
  • Next by Date: Re: do shell script "sort" not working
  • Previous by thread: Re: Launching a shell script nested inside a bundle (Applescript-users Digest, Vol 2, Issue 746)
  • Next by thread: Re: Photoshop Channels help
  • Index(es):
    • Date
    • Thread