Secrets of Spotlight
Spotlight is pretty easy to use, and it’s best to start off simple by just searching for the name of a file. Enter ‘script’ to find a file with that in its name or contents.
Entering ‘script’ should bring up the Script Editor app as the top result. If this isn’t what you are looking for you could narrow down your search using Boolean operators: AND, OR and NOT. Enter ’script NOT editor’ or prefix a word with a minus to omit items with that word from results.
Typically, though, you’ll want to narrow down your search using keywords. Enter ‘script kind:document’ to find all the documents with script in their name or text. You can narrow down searches using created and modified tags, such as created:2015, or created:10/5/14 to match a specific date. Use the ‘less than or equals’ operator (<=) to find items created before a certain date, such as ‘created:<=10/12/2014’.
There are many more keywords you can use to perform more focussed searches in Spotlight, and you can use more than one at a time. For a complete list of them in Yosemite, go to http://apple.co/1Wovf53.