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

Meta data help


  • Subject: Meta data help
  • From: Oakley Masten <email@hidden>
  • Date: Fri, 27 Jun 2008 10:16:22 -0700 (PDT)

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

 _______________________________________________
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: Meta data help
      • From: Martin Orpen <email@hidden>
  • Prev by Date: Re: osascript shell commands using AppleScript
  • Next by Date: Re: Oldest Message in Mail's Trash
  • Previous by thread: Re: can applescript monitor keyboard input
  • Next by thread: Re: Meta data help
  • Index(es):
    • Date
    • Thread