• 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
Spotlight query operator NOT
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spotlight query operator NOT


  • Subject: Spotlight query operator NOT
  • From: Pierre Bernard <email@hidden>
  • Date: Mon, 1 May 2006 22:48:40 +0200

Oddly enough the 2 Spotlight queries below match the very same files:

(( (kMDItemTextContent like[cdw] 'raja*')) && ( (kMDItemTextContent like[cdw] 'houdah*')))

(( (kMDItemTextContent like[cdw] 'raja*')) && ! ( ( (kMDItemTextContent like[cdw] 'houdah*')) ))

It's like the NOT operator is ignored. This is the same if I write the query like this:

( (kMDItemTextContent like[cdw] 'raja*')) AND (NOT ( ( (kMDItemTextContent like[cdw] 'houdah*')) )))


What gives?

Pierre

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Spotlight query operator NOT
      • From: Kaelin Colclasure <email@hidden>
  • Prev by Date: Re: Interesting Hint for Media Browser
  • Next by Date: Re: Can't get System prefPane to work
  • Previous by thread: Re: NSOpenPanel setCanChooseDirectories behavior
  • Next by thread: Re: Spotlight query operator NOT
  • Index(es):
    • Date
    • Thread