Skip to content

Instantly share code, notes, and snippets.

@zhengjia
Created February 15, 2011 01:09
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 zhengjia/826913 to your computer and use it in GitHub Desktop.
Save zhengjia/826913 to your computer and use it in GitHub Desktop.
#!/bin/sh
osascript <<END
activate application "Terminal"
tell application "Terminal"
do script "memcached -vv" in window 1
end tell
tell application "System Events"
tell process "Terminal"
keystroke "t" using command down
end tell
end tell
delay 1
tell application "Terminal"
do script "cd ngin;rails s --debugger;" in the last tab of window 1
end tell
tell application "System Events"
tell process "Terminal"
keystroke "t" using command down
end tell
end tell
delay 1
tell application "Terminal"
do script "cd ngin;rails c" in the last tab of window 1
end tell
tell application "System Events"
tell process "Terminal"
keystroke "t" using command down
end tell
end tell
delay 1
tell application "Terminal"
do script "cd ngin;mate ." in the last tab of window 1
end tell
END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment