To plug Ruby directly into your brain, take three short breaths, mutter a prayer to Matz, and then follow these instructions:
Prerequisites: Mac OS X Panther or greater and Quicksilver
- Download this humble Applescript
- Unzip the script and copy it to `~/Library/Application Support/Quicksilver/Actions/`
- Restart Quicksilver
Once you’ve plugged in, Ruby is just a blink away:
- Invoke Quicksilver (`CTRL-Space`)
- Type a period (`.`) followed by your one-line stroke of genius, such as:
- Press `TAB`
- Type until `ruby` is displayed in the second pane
- Press `Return`
The results of your Ruby one-liner (‘PLUG ME IN
’ in this case) are
placed back into the first pane of Quicksilver for your digestion.
Thanks to bsg for the inspiration.