Re: Image Event Script Not Working
Re: Image Event Script Not Working
- Subject: Re: Image Event Script Not Working
- From: Andrew Oliver <email@hidden>
- Date: Wed, 02 Mar 2005 10:10:45 -0800
On 3/2/05 9:55 AM, "Steve Suranie" <email@hidden> wrote:
> I'm trying to convert CMYK files to RGB. Here's my code:
>
> set thePath to "Cumulus:Merion Image
> Archive:_thumbnails:HX110104_IL_ProSuccess.jpg"
>
> tell application "Image Events"
> launch
> set theImage to open alias thePath
> set color space of theImage to "RGB"
> close thePath
> end tell
>
> I keep getting NSInternalScriptError error messages. Any help would be
> appreciated.
You're trying to set the color space of the image to a string which won't
work.
The dictionary lists a series of constant values for the different color
spaces - although they look like string's, they're not, so instead of:
set color space of theImage to "RGB"
try:
set color space of theImage to RGB
(lose the quotes)
Andrew
:)
_______________________________________________
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