• 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
Image Events can't see Gray color space
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image Events can't see Gray color space


  • Subject: Image Events can't see Gray color space
  • From: Timothy Wilkinson <email@hidden>
  • Date: Mon, 09 Apr 2007 14:58:40 -0400
  • Thread-topic: Image Events can't see Gray color space

I'm working on a simple script to give me the color space of certain images.
I'm using the example scripts from the Apple site (
http://www.apple.com/applescript/imageevents/02.html) to get the
information.

The basic script is this:

set theFile to (choose file)
tell application "Image Events"
    launch
    set this_image to open theFile
    copy the color space of this_image to theColor
    close this_image
end tell
display dialog theColor as string

This works well on images that are either RGB or CMYK.  However, any image
that is Grayscale returns an error saying "The variable theColor is not
defined".

If I get the properties of the image I see that the color space property is
listed as "missing value".  If I open the image in Preview and do a "Get
Info" is says the color space is "gray".  According to the Image Events
dictionary the color space "gray" is a valid value but it doesn't see it.

Is this a known issue/bug?  Anyone have any ideas as to why Image Events
chokes on grayscale images?  I've tried saving different images out as
grayscale in both Preview and Photoshop CS 2 in case PS was writing
something weird but they all get the same error.  I've also tried it on
different machines and get the same error.

Many thanks for any advice!


Tim Wilkinson
ITC-ACHS
University of Virginia
email@hidden

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Image Events can't see Gray color space
      • From: kai <email@hidden>
    • Re: Image Events can't see Gray color space
      • From: Jeff Jungblut <email@hidden>
  • Prev by Date: Re: rtf and rtfd (Related to Getting at Some Hidden Clipboard Contents)
  • Next by Date: Re: Image Events can't see Gray color space
  • Previous by thread: Re: Duplicate problem
  • Next by thread: Re: Image Events can't see Gray color space
  • Index(es):
    • Date
    • Thread