Is it possible to use the Spotlight APIs (do they exist, right?) In Cocoa to determine if the Spotlight (in the upper right corner) matches the given Path file with the given string?
In other words, given a FilePath file such as "/Users/enchilada/Desktop/MapOfUSA.pdf" and a line such as Virginia, how can I tell if Spotlight will show this file when Virginia is entered in the upper right spotlight search? (As you can imagine, in the example shown, this is likely to be consistent, because the PDF map in the USA probably contains Virginia.)
If possible, a simple piece of code will be appreciated to do this.
source share