Permalink
Browse files

Add AppleScript to run commands in current Terminal

  • Loading branch information...
1 parent 64051a4 commit 984c99626c249fc3fa494207f72deabab52270c8 @jferris committed Nov 7, 2012
Showing with 17 additions and 0 deletions.
  1. +17 −0 run-in-terminal
View
@@ -0,0 +1,17 @@
+#!/usr/bin/env osascript
+
+on run argv
+ tell application "Terminal"
+ if (count of windows) is 0 then
+ do script argv
+ else
+ do script argv in window 1
+ end if
+
+ activate
+ end tell
+
+ tell application "MacVim"
+ activate
+ end tell
+end run

0 comments on commit 984c996

Please sign in to comment.