I wrote a simple TextMate 1.5 bundle to run Python, Ruby, PHP, Bash scripts in Terminal without stealing focus from the TextMate window. It can easily be modified to run the language of your choice.
- Download the archive and unpack it.
- Double click “Run in Terminal.tmbundle“. TextMate will install the bundle automatically.
Usage: press Cmd + Shift + R to run your script.