• 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: Getting info from file without opening it
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: Getting info from file without opening it (From: "Gary (Lists)" <email@hidden>)

  • Prev by Date: Re: Getting info from file without opening it
  • Next by Date: Returning default browser
  • Previous by thread: Re: Getting info from file without opening it
  • Next by thread: Re: Getting info from file without opening it
  • Index(es):
    • Date
    • Thread