Skip to content

Instantly share code, notes, and snippets.

@mplacona
Created May 7, 2015 12:06
Show Gist options
  • Save mplacona/2b8c2949ccb76f9b7bbb to your computer and use it in GitHub Desktop.
Save mplacona/2b8c2949ccb76f9b7bbb to your computer and use it in GitHub Desktop.
The Code Compiler
tell application "Terminal"
activate
reopen
tell application "System Events" to keystroke "t" using command down
repeat while contents of selected tab of window 1 starts with linefeed
delay 0.01
end repeat
do script "bash ~/Projects/bash/compiling.sh" in window 1
end tell
* create the script
* add a shortcut to it in your keyboards shortcut as shown in the screenshot (http://monosnap.com/image/idkRLKyEij1DC2bstdwUmznG0ODX3S)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment