spotlight.rb
Last updated: 11/26/2006
spotlight.rb is a script that allows you to perform Spotlight searches and launch items returned by those searches from the command line. I’m not sure if it will actually be useful to anyone. I just thought it would be fun to make.
If you’d like to try it out:
- Make sure you’re running Mac OS X 10.4 or later
- Download the program
- Unzip the archive
- Open a terminal window and change the directory to the location of the program
- Type
ruby spotlight.rb
The program understands the following commands (followed by the return key):
sorsearch: Searches Spotlight for the string following the command. For example,s opml.forforward: Displays the next twenty results of the search.borback: Displays the previous twenty results of the search.qorquit: Ends the program.- To launch one of the results of the search, simply type the number of the result.
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
