SetTerminalStyle Tool for

terminalapp.pngSome time ago I found a small AppleScript from the blog of the Omni Group that allowed to use shell command sensitive use of styles. That script allowed the definition of different styles in that would be activated when a special command was used in the shell. You could define one style for ssh, one style for vim and another style for using sudo commands. This script got broken when updating to Snow Leopard. Today I decided to give the ScriptingBridge framework a try and to transform this AppleScript into a small command line tool. The result is now available from Google Code. I’ve also added two additional features:

  • The tool can return the active setting so that the shell can restore the old style when having completed the command.
  • It can return a list of all styles defined in

Have fun!

In the meantime I found out that the Omni Group had already fixed the script and made it compatible with Snow Leopard again: setterminalstyle-v2. Under these circumstances lets see this project as a little practice using the ScriptingBridge framework 🙂