• 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 Meta data Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Image Meta data Question


  • Subject: Image Meta data Question
  • From: Oakley Masten <email@hidden>
  • Date: Thu, 17 Apr 2008 12:32:11 -0700 (PDT)

Image Meta data Question

On 16 Apr 2008, at 20:49, Oakley Masten wrote:
> Is it possible to get Meta data out of a PhotoShop
> file without opening the file?  If so where do I
look
> to do it?

On: Wed, 16 Apr 2008
Martin Orpen  Said

Yes.

Look at using mdls:

--
Martin Orpen
Idea Digital Imaging Ltd


On 17 Apr 2008, at 18:05, Oakley Masten wrote:

> tell application "Finder"
> 	set theFile to choose file
> 	set foo to POSIX path of theFile --(selection as
> alias)
> 	display dialog (do shell script "mdls -name
> kDMItemKind " & quoted form of foo)
> end tell
>
> This returns only the File Path but nothing else.
> I don't understand the parameters for shell
scripting
> so could not make it work
> I tried using several of the choices but none
worked.
>
> How do I get it to give me only the fields I want?


All you need to do is check that you've spelled them
correctly ;-)

And you don't need the Finder tell block as this is
all from
StandardAdditions:


set foo to POSIX path of (choose file)
set bar to do shell script "mdls -name kMDItemKind " &
quoted form of
foo

--> kMDItemKind = "NEF Image"


Regards

--
Martin Orpen
Idea Digital Imaging Ltd


Thanks Martin
That works just great.

Oakley


 _______________________________________________
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

  • Prev by Date: Automated backups to .Mac
  • Next by Date: Mail scripting once more
  • Previous by thread: Re: Image Meta data Question
  • Next by thread: Image Meta data Question
  • Index(es):
    • Date
    • Thread