Re: Image Meta data Question
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