• 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 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


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

  • Prev by Date: Re: Image Event Script Not Working
  • Next by Date: Indesign CS to PDF question
  • Previous by thread: Re: Image Event Script Not Working
  • Next by thread: Re: Beginner's scripting Terminal questions
  • Index(es):
    • Date
    • Thread