• 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
metadata to propertyList
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

metadata to propertyList


  • Subject: metadata to propertyList
  • From: Rainer Standke <email@hidden>
  • Date: Sun, 19 Dec 2010 09:59:09 -0800

Helo,

I want to get file metadata into a propertyList.

My first question is how to get the metadata for a specific file. I gather that there is not a way to get a NSMetadataItem for a specific file, other than to perform a NSMetadataQuery - which seems silly, since I have the file path to begin with. So I am considering to use an NSTask with mdls. Is that a good choice?

The second question is about how to parse the output of mdls. I am using NSScanner and a couple of NSString methods to distill the info I need. I am surprised that there is not a more succinct way of doing this. Am I overlooking something?

Thanks a lot for any insight you might provide,

Rainer_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: How can I "set tab stops" in a UITextView?
  • Next by Date: NSToolbar help
  • Previous by thread: Re: How can I "set tab stops" in a UITextView?
  • Next by thread: NSToolbar help
  • Index(es):
    • Date
    • Thread