Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting info from file without opening it



At 10:05 AM -0500 1/13/07, Gary (Lists) wrote:
> Hello, does anyone know if it's possible to use a script to get information
> about an image file without opening the file? For instance, I would like to
> know if a Photoshop created eps is grayscale, RGB, CMYK, etc. Perhaps there is
> a shell script that can do it?


There are minimally two pieces of AppleScriptable software pre-installed and
useful for this sort of task.  (I suppose there is arguably just one, and
the second is a kind of wrapper around the first.)

Check out the Image Events dictionary [it's a pre-installed scripting
addition] and the Unix tool 'sips' [which I think is the basis for Image
Events anyway].

Also, if you have Smile installed, you can use its companion osax Numerics' command "imagefile bounds".


Or, you can download and install the osax separately:
<http://www.satimage.fr/software/en/downloads_smilelab_extensions.html>

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

This email sent to email@hidden
References: 
 >Re: Getting info from file without opening it (From: "Gary (Lists)" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.