RE: PhotoShop Spot Channels
RE: PhotoShop Spot Channels
- Subject: RE: PhotoShop Spot Channels
- From: Rick Gordon <email@hidden>
- Date: Thu, 26 Jun 2008 17:03:00 -0700
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
Rick Gordon
------------------
On 6/26/08 at 4:38 PM -0700, Rick Gordon wrote in a message entitled
"Re: PhotoShop Spot Channels":
>Here's an AppleScript that will do it. It could be more tweaked to avoid some unnecessary searches of component channels (e.g. the first 3 channels of an RGB file, etc.), but this will do it:
>
>tell application "Adobe Photoshop CS3"
> tell current document
> 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 channelCount to 1 by -1
> if kind of channel i is spot color channel then
> set beginning 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
>
>You could save the script and run it from the Terminal with a do shell script command, if that's still a preference.
>
>Rick Gordon
>
>------------------
>
>On 6/26/08 at 6:51 PM +0100, Simon Topliss wrote in a message entitled
>"PhotoShop Spot Channels":
>
>>Hey all,
>>
>>Does anyone know of a command line utility to query a PSD file to find out what spot colour channels it has?
>>
> >Simon
--
___________________________________________________
RICK GORDON
EMERALD VALLEY GRAPHICS AND CONSULTING
___________________________________________________
WWW: http://www.shelterpub.com
_______________________________________________
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