Skip to content

Instantly share code, notes, and snippets.

@mtodd
Forked from defunkt/after-use
Created August 17, 2009 07:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mtodd/168966 to your computer and use it in GitHub Desktop.
Save mtodd/168966 to your computer and use it in GitHub Desktop.
#!/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