-
-
Save mtodd/168966 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/osascript | |
on run_command(command) | |
tell application "Terminal" | |
do script "clear" in selected tab of front window | |
do script command in selected tab of front window | |
end tell | |
end run_command | |
tell application "System Events" | |
my run_command("cd ~/Projects/nudge") | |
my run_command("./bin/nudged") | |
keystroke "t" using {command down} | |
my run_command("cd ~/Projects/nudge") | |
my run_command("./bin/nudged -p 31312") | |
keystroke "t" using {command down} | |
my run_command("cd ~/Projects/nudge") | |
my run_command("ruby examples/client.rb") | |
keystroke "t" using {command down} | |
my run_command("cd ~/Projects/nudge") | |
my run_command("ruby examples/client.rb") | |
keystroke "t" using {command down} | |
my run_command("cd ~/Projects/nudge") | |
my run_command("echo Welcome to nudge.") | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment