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

Re: Image Meta data Question


  • Subject: Re: Image Meta data Question
  • From: Oakley Masten <email@hidden>
  • Date: Thu, 17 Apr 2008 10:05:09 -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:

tell application "Finder" to set foo to POSIX path of
(selection as
alias)
display dialog (do shell script "mdls -name
kMDItemDescription " &
quoted form of foo)


Which will retrieve the IPTC "description" data from
an image that you

have selected in the Finder - including native PSD.

Changing the "mdls -name kMDItemDescription " to just
"mdls " will
show you all the metadata fields and their names.

Regards

--
Martin Orpen
Idea Digital Imaging Ltd

-----------------------------------------------
Thanks Martin
This almost worked for me.

tell application "Finder"
	set theFile to choose file
	set foo to POSIX path of theFile --(selection as
alias)
	display dialog (do shell script "mdls  " & quoted
form of foo)
end tell

This returns the complete list of metadata fields and
their names as you said it would.

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?

Thanks
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

  • Follow-Ups:
    • Re: Image Meta data Question
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Change Mighty Mouse settings w/o System Events
  • Next by Date: Re: Image Meta data Question
  • Previous by thread: Re: Image Meta data Question
  • Next by thread: Re: Image Meta data Question
  • Index(es):
    • Date
    • Thread