• 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
Re: PhotoShop Spot Channels
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PhotoShop Spot Channels


  • Subject: Re: PhotoShop Spot Channels
  • From: Simon Topliss <email@hidden>
  • Date: Sat, 28 Jun 2008 18:02:32 +0100

Thanks, Rick and Martin.

I've just been using the following to get the name of the channels:

tell application "Adobe Photoshop CS3"
try
set colourChannelList to name of channels of current document whose name is not in {"Cyan", "Magenta", "Yellow", "Black"}
on error
set colourChannelList to {"[None]"}
end try
end tell


Not too sure what the difference between regular channels and component channels are?

To elaborate a bit further, I open the PSD file, read the channels and store them in the xmp meta data of the PSD file along with the date modified of the time that the result was written.

When I need to verify the PSD again, if the date modified of the PSD file is newer than the date modified I stored in the xmp header, I open the PSD again and re-index the colour channels again. This new data is then re-added to the xmp meta data.

All is working well. I would just prefer not to open the PSD file if it has been modified to re-check what channels may have been added or removed. This can cause problems if someone else is currently working on the image.

SIPS and ImageMagick won't read the channel names. I was hoping that there was something else that didn't require PS to open the image to get what I wanted.

Simon

On 27 Jun 2008, at 01:03, Rick Gordon wrote:

A more tuned version follows:

tell application "Adobe Photoshop CS3"
tell current document
set componentChannels to component channels
set componentChannelNumber to length of componentChannels
set channelKindList to kind of channels
if channelKindList does not contain spot color channel then
display dialog "No spot channels"
return
end if
set returnList to {}
set channelCount to count channels
repeat with i from (componentChannelNumber + 1) to channelCount
if kind of channel i is spot color channel then
set end of returnList to "Channel " & i & ": " & name of channel i & return
end if
end repeat
tell AppleScript to display dialog returnList as text
end tell
end tell

_______________________________________________ Do not post admin requests to the list. They will be ignored. AppleScript-Users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
  • Follow-Ups:
    • Re: PhotoShop Spot Channels
      • From: Rick Gordon <email@hidden>
References: 
 >PhotoShop Spot Channels (From: Simon Topliss <email@hidden>)
 >RE: PhotoShop Spot Channels (From: Rick Gordon <email@hidden>)
 >RE: PhotoShop Spot Channels (From: Rick Gordon <email@hidden>)

  • Prev by Date: Re: set "busy status" ?
  • Next by Date: Re: set "busy status" ?
  • Previous by thread: RE: PhotoShop Spot Channels
  • Next by thread: Re: PhotoShop Spot Channels
  • Index(es):
    • Date
    • Thread