Re: Getting info from file without opening it
Re: Getting info from file without opening it
- Subject: Re: Getting info from file without opening it
- From: Emmanuel <email@hidden>
- Date: Sat, 13 Jan 2007 16:17:55 +0100
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:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden