Erik Barzeski stumbled on a cool trick with Terminal’s scriptability, allowing him to save presets for his favorite color schemes in AppleScript. His approach is especially brilliant since he’s using FastScripts to trigger the scripts!
This gave me a little whimsy of an idea, that it would be cool to have a script on hand to change the color of the frontmost terminal to some random color scheme.
Random Color Terminal does just that. It sure comes up with some ugly schemes, but the good news is that with a Terminal-specific shortcut assigned to the script, I can rip through random choices until I see something I like. I even discovered a little algorithm online to determine whether black or white text is best for the given background color.
Speaking of Terminal and AppleScript, here’s a little quickie that I really appreciate in Terminal:
tell application "Terminal" try do script "cd ~/" in window 1 on error do script "cd ~/" end try end tell
It shouldn’t be hard for you to recognize this as “go to my home directory.” So what’s the big deal? Well I set it as a FastScripts shortcut with the key combination “Cmd-Shift-H.” The same combination as the Finder uses for the same action. So now whether I’m sitting in Terminal or the Finder, that basic keystroke gets me to the same place.