appswitch is a command-line interface to the Mac OS X process manager. If you use shell scripts to automate Mac OS X applications, you may need to switch between applications. You could use AppleScript via osascript(1), but it may take several seconds for the script to compile and execute, or you could use appswitch which works almost instantly. Need to launch an X11 application from Terminal but the X server isn't in front when you need it? Use appswitch to fix the problem. Or, if you'd like a version of the ps(1) utility which understands the concept of OS X applications, appswitch can help.
DES COURTNEY Works as advertised... As an additional bonus, you can use this tool to convert between application names, creator codes, and application paths. This should be very handy for certains kinds of shell scripts, and even within AppleScript, despite the developer's intentions.
There's no package installer, so you'll have to install the man page yourself. (The tool itself is full path addressable if you don't want to place it where your shell's $PATH can see it.) (Version 1.0.1)