metadata to propertyList
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