Re: NSFileHFSTypeCode = 'brok'
Re: NSFileHFSTypeCode = 'brok'
- Subject: Re: NSFileHFSTypeCode = 'brok'
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 18 Feb 2007 15:33:59 +0700
On 17 Feb 2007, at 15:12, Scott Anguish wrote:
On Feb 16, 2007, at 9:53 PM, Gerriet M. Denkmann wrote:
2. Question: How to make mdfind work, and where is a complete list
of kMDxxx to be found?
kMDxxx are described in http://developer.apple.com/documentation/
Carbon/Reference/MetadataAttributesRef/index.html
This list seems to be not quite complete. Neither kMDItemFSTypeCode,
kMDItemFSCreatorCode nor kMDItemID is listed.
But all are working in mdfind as well as with NSPredicate.
With one exception: kMDItemFSTypeCode and kMDItemFSCreatorCode seem
not to be working for certain (Apple defined) strings.
$ mdfind "kMDItemFSTypeCode == 'Abcd'"
/Users/gerriet/Desktop/Abcd.txt
$ mdfind "kMDItemFSTypeCode == 'abcd'"
/Users/gerriet/Desktop/abcd.txt
$ mdfind "kMDItemFSTypeCode == 'fdrp'" --- type for folder aliases
/System Folder/Apple Menu Items/Favorites
But:
$ mdfind "kMDItemFSTypeCode == 'brok'"
returns nothing, although there are files with this type.
(Or Spotlight did not index these files because of 'brok').
So: How do I find these busy files (which indeed are not busy, the
flag must be the result of some former accident)?
I want to make an archive - but after 20 minutes the Finder informs
me that I have insufficient priviledges for Info.plist.
But most annoyingly it does not specify the full filename.
Gerriet.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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