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

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

  • Prev by Date: Image Event Script Not Working
  • Next by Date: EPPC & multiple users (was Re: Events in iCal - how do you do recurrence?)
  • Previous by thread: Image Event Script Not Working
  • Next by thread: Re: Image Event Script Not Working
  • Index(es):
    • Date
    • Thread