• 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: Martin Orpen <email@hidden>
  • Date: Thu, 17 Apr 2008 18:33:36 +0100

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


_______________________________________________ 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
References: 
 >Re: Image Meta data Question (From: Oakley Masten <email@hidden>)

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