spotlight.rb is a small Ruby program that I threw together a few weeks ago. It 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
- 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:
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.
If you find spotlight.rb useful and would like to see it developed further, let me know. Please keep in mind that this is only my second Ruby script.




2 Trackbacks
Buscando por ahi he encontrado un script hecho en ruby :D que soporta muy pero que muy bien el spotlight, os invito a que lo veais enesta
[...] If true, this is good news. As much as I like the idea of Spotlight, it’s so poorly implemented that I never use it. Most of the time, I use grep instead. And sometimes even the command-line Spotlight app I wrote. 10/22/2005 12:04 AM | Tags: Mac OS X | RSS | Trackback [...]