• 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: Color Setting in Photoshop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Color Setting in Photoshop


  • Subject: Re: Color Setting in Photoshop
  • From: Steven Valenti <email@hidden>
  • Date: Mon, 8 Mar 2004 09:02:21 -0500

Thanks Shane.
I'm going to set it up so the color will only change if there is an
error.

tell application "Adobe Photoshop 7.0"
activate
make new document
select all of current document
repeat
try
fill selection of current document with contents {class:RGB color,
red:177, green:125, blue:43}
exit repeat
on error
set foreground color to {class:RGB color, red:0, green:0, blue:0}
-- Set foreground color or custom color will error
end try
end repeat
end tell
On Sunday, March 7, 2004, at 04:54 AM, Shane Stanley wrote:

> On Mar 7, 2004, at 3:04 AM, Steven Valenti wrote:
>
>> I tried this on my laptop running OS 10.3 and received the error
>> "Adobe Photoshop 7.0 got an error: This version of the
>> ScriptingSupport does not support custom colors such as PANTONE.
>> colors."
>
> That is odd. The solution is to set the foreground color (and maybe
> the background color too, to be safe):
>
> tell application "Adobe Photoshop 7.0"
> activate
> make new document
> select all of current document
> set foreground color to {class:RGB color, red:177, green:125,
> blue:43} -- or whatever
> fill selection of current document with contents {class:RGB color,
> red:177, green:125, blue:43} --no error here
> end tell
>
> --
> Shane Stanley <email@hidden>
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Re: Color Setting in Photoshop (From: Shane Stanley <email@hidden>)

  • Prev by Date: Deleting files
  • Next by Date: Re: OS 9 print no dialog via script
  • Previous by thread: Re: Color Setting in Photoshop
  • Next by thread: referring to metadata tags with image events
  • Index(es):
    • Date
    • Thread