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 12:43:46 -0800
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"
Hope this helps,
roger
_______________________________________________
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