• 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: Image Event Script Not Working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Image Event Script Not Working
      • From: Roger Howard <email@hidden>
References: 
 >Image Event Script Not Working (From: Steve Suranie <email@hidden>)

  • Prev by Date: Automating changing the root password
  • Next by Date: Re: Image Event Script Not Working
  • Previous by thread: Re: Image Event Script Not Working
  • Next by thread: Re: Image Event Script Not Working
  • Index(es):
    • Date
    • Thread