As is often the case I get started on a project and they have to do
"Something More Important" instead.
On Date: Wed, 16 Apr 2008 22:33:11 +0100
Mr Martin Orpen <email@hidden>
Helped me with this advice.
It was working just fine but now that I get back to working with it
there is a problem.
The
"Keywords" meta data item is no longer in the list.
Where might it have gone?
OSX 10.4.11
tell application "Finder"
set theFile to choose file
set foo to POSIX path of theFile --(selection as alias)
--This returns the File Path and the complete list of metadata fields and their names
--The list no longer includes kMDItemKeywords but it use to.
display dialog (do shell script "mdls " & quoted form of foo)
--this returns the File Path and requested items from the list as stated that it would
--How do I get it to only return the requested data and leave off the file path?
display dialog (do shell script "mdls -name kMDItemPageWidth -name kMDItemPageHeight " & quoted form of foo)
--this returns the File Path and "nothing" as the kMDItemKeywords is missing from the list
--It use to show the Keywords as they were part of the total list but are no longer there.
display dialog (do shell script "mdls -name kMDItemKeywords " & quoted form of foo)
end tell
Thanks for your previous help Martin.
What do I do next?
Thanks
Oakley