Using+Spotlight+Comments

Using Spotlight Comments, you can build your own indexing and filing system, which Spotlight will then add to its index. To see how it works, switch to the Finder and select any program or document you wish, then press Command-I (File -> Get Info). Near the top of the Info window, you’ll see a box labeled Spotlight Comments. This is the key to your own home-built indexing system—any text you enter here will be added to Spotlight’s index.

So if you open, for instance, QuickTime Player quite often, but don’t want it taking up space in your Dock, add a Spotlight Comment to the application. Try to make your comment something unique, so that Spotlight will return only the one match you’re looking for—in this case, perhaps. Within seconds of typing your abbreviation, Spotlight will have added that entry to its database. Press Command-Space, type, and you Spotlight should quickly find QuickTime Player:



Of course, using this trick for application launching really isn’t the best use of the Spotlight Comments box—Spotlight does a pretty good job of finding applications already (and any of the above-mentioned launchers will do a //much// better job at this than does Spotlight). Where this approach can be quite useful, however, is in lumping all project-related documents together into one set of Spotlight search results. Create a unique Spotlight comment for each project, then apply that comment to all files in the project. ([|This hint] explains how to use [|Automator] to apply comments to many existing files, all at once.) For example, create a tag called, and apply it to all your 2007 second half business plan documents. You can then enter this phrase in Spotlight’s search box, and you’ll see all your business plan documents at once.

To make things even simpler, though, you can create a Smart Folder based on your Spotlight Comment entries, giving you super-fast access to the project files. In Finder, select File -> New Smart Folder. Set the location to be searched to Computer, and then select Other from the first pop-up menu. In the list that appears, scroll down to Spotlight Comment and select it. (Also check Add to Favorites if you’ll be creating a lot of these; it will then appear in the main pop-up menu.) Click OK, then change the Contains pop-up to Is, and finally enter your Spotlight comment term in the blank text box. When you’re done, it should look something like this:



Finally, click the Save button to save your Smart Folder, give it a name, and pick a save location. Repeat this process (choosing new Spotlight comments each time, obviously) for all your different projects, and you’ll have a library of quick-access folders showing all of the related files in one spot, regardless of their actual location on your hard drive.