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

Re: Image Events can't see Gray color space


  • Subject: Re: Image Events can't see Gray color space
  • From: Jeff Jungblut <email@hidden>
  • Date: Mon, 09 Apr 2007 19:55:12 -0700
  • Thread-topic: Image Events can't see Gray color space

Title: Re: Image Events can't see Gray color space
on 4/9/07 11:58 AM, Timothy Wilkinson at email@hidden wrote:

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

Same here. This is what I've done -- probably not the best way but the only color spaces this script needs to deal with with are RGB/CMYK/Gray.
 
   
            set this_image to open (theFile as alias)
               copy color space of this_image to imgColors
               try
                   if imgColors is CMYK then
                       set imgColorsTXT to "CMYK"
                    else if imgColors is RGB then
                       set imgColorsTXT to "RGB"
                    else if imgColors is Gray then
                       set imgColorsTXT to "Gray"
                    else
                       set imgColorsTXT to "Other"
                    end if
               on error
                   set imgColorsTXT to "Gray"
                end try


--
Jeff Jungblut
email@hidden
Senior Graphic Designer & Web Developer
Uptown Publications
 _______________________________________________
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

References: 
 >Image Events can't see Gray color space (From: Timothy Wilkinson <email@hidden>)

  • Prev by Date: RE: RE: Small real not working
  • Next by Date: Re: Image Events can't see Gray color space
  • Previous by thread: Image Events can't see Gray color space
  • Next by thread: Re: Image Events can't see Gray color space
  • Index(es):
    • Date
    • Thread