Re: Image Event Script Not Working
Re: Image Event Script Not Working
- Subject: Re: Image Event Script Not Working
- From: Roger Howard <email@hidden>
- Date: Wed, 2 Mar 2005 13:38:18 -0800
On Mar 2, 2005, at 12:43 PM, Roger Howard wrote:
On Mar 2, 2005, at 9:55 AM, Steve Suranie 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
color space is read only, I believe.
However, a few things.
First, CMYK JPEGs are not very common, and not supported by many
applications. Perhaps Image Events doesn't like them.
Second, if you want to do a color model change (I really wish they
hadn't called that property "color space"!) then you could use
ColorSyncScripting to do it... to convert a CMYK file to an RGB file
you'd just use the match command with an RGB space as your
destination:
match thePath to destination profile "My RGB Space"
Btw, if you're absolutely needing to automate conversion of CMYK JPEGs,
you should just look to Photoshop for this - I'm pretty sure Martin
will agree with me :)
Near as I can tell, neither Image Events or ColorSyncScripting support
CMYK JPEGs.
-R
_______________________________________________
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