> On 17 Feb 2017, at 22:25, Keary Suska <[email protected]> wrote:
> 
> The correct syntax is probably:
> 
>       kMDItemFSName ==[c] *%@*
> 

Yeah, I’ve just been playing with that since my last post. Indeed, I discovered 
that the docs claim that this should be equivalent to contains:


kMDItem….       == “*paris*” - Matches attributes that contain "paris" anywhere 
within the value. For example, matches “paris” and “comparison”.


Although it does sort of work in 10.7.5 in that it’s accepted and returns some 
results, it still doesn’t return the full results that I’m expecting. A good 
example is giving it my own bundle identifier. mdfind on the command line 
returns all the results from the /Application Support folder. NSMetadataQuery 
doesn’t return anything at all. 

I can’t figure out why that is yet, either, but I’m still experimenting. 


Best


Phil


_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to