Image Meta data Question
Image Meta data Question
- Subject: Image Meta data Question
- From: Oakley Masten <email@hidden>
- Date: Wed, 30 Apr 2008 09:47:20 -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 22:33
Martin Orpen email@hidden Wrote:
Yes.
Look at using mdls:
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
Which will retrieve the IPTC "kind" data from an image
that you have selected in the Finder - including
native PSD.
Changing the "mdls -name kMDItemKind " to just "mdls "
will
show you all the metadata fields and their names.
Regards
--
Martin Orpen
Idea Digital Imaging Ltd
I modified the script to:
tell application "Finder"
set theFile to choose file
set foo to POSIX path of theFile --(selection as
alias)
-- This gives me the file path and the ÒauthorsÓ data
just like Martin said it would.
display dialog (do shell script "mdls -name
kMDItemAuthors " & quoted form of foo)
--This returns the complete list of metadata fields
and their names as Martin said it would
display dialog (do shell script "mdls " & quoted form
of foo)
end tell
Unfortunately what I really want is the ÒKeywordsÓ
data from PhotoShop files and that parameter is
missing from the list of all data available.
It is in the PhotoShop ÒInfoÓ screen but not the list.
Martin, what am I doing wrong here?
Is ÒKeywordsÓ not available to this methodology?
Sorry to be so thick headed on this one.
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