haraken3/SublimeRubyMotionBuilder — pull request #17 by iandundas (2013-02-15 05:21:30+00:00)
Title: RubyMotion run script alteration

Problems were:
- didn't close previous window (issue is that custom title did not remain as "${TERMINAL_ID}" but would change to "rake" when rake executed, so the window would never be found or closed.
- sometimes didn't run rake, but simply ran the following and did nothing else:
alias quit='' && cd \"${PROJECT_DIR}\" && clear

This commit not perfect (not skilled at osascript) but now works.

Problems:
- will close every rake instance running in Terminal.app. Basically reporting a bug and a crude fix, but my osascript skills are too low to perfect it