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.
Installation:
- 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.
Running it in Textmate 2 gives:
Run Python: line 4: /Support/functions.sh: No such file or directory
osacompile: couldn’t read file /Support/executor.applescript: No such file or directory
osascript: /Support/executor.scpt: No such file or directory
Run Python: line 19: esc_ap: command not found
Run Python: line 19: esc_ap: command not found
Run Python: line 19: esc_ap: command not found
Run Python: line 19: tm_exec: command not found