Run Python, Ruby, PHP, Bash scripts in Terminal without stealing focus from TextMate

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:

  1. Download the archive and unpack it.
  2. Double click “Run in Terminal.tmbundle“. TextMate will install the bundle automatically.

Usage: press Cmd + Shift + R to run your script.

This entry was posted in Releases and tagged , , , , . Bookmark the permalink.

One Response to Run Python, Ruby, PHP, Bash scripts in Terminal without stealing focus from TextMate

  1. user14121 says:

    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

Leave a Reply

Your email address will not be published. Required fields are marked *