Created
January 19, 2013 01:01
-
-
Save basilleaf/4570031 to your computer and use it in GitHub Desktop.
Applescript opens a Chrome window, 2 terminals, and sublime, pointing where you say.
This file contains 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
# open a website in Chrome (couldn't get FF to work) | |
set site to "http://127.0.0.1:8000/" | |
tell application "Google Chrome" | |
reopen | |
activate | |
tell window 1 | |
make new tab with properties {URL:site} | |
end tell | |
end tell | |
# open a path in sublime, make terminal there too - purple | |
set my_command to "cd /path/to/my_site/; subl ." | |
tell application "Terminal" | |
activate | |
with timeout of 1801 seconds | |
do script with command my_command | |
tell window 1 | |
set normal text color to "purple" | |
set title displays shell path to true | |
set title displays window size to true | |
set title displays device name to true | |
set title displays file name to true | |
set title displays custom title to true | |
end tell | |
end timeout | |
end tell | |
# open a terminal and run a command - magenta | |
set my_command to "cd /path/to/my_site/" | |
tell application "Terminal" | |
activate | |
with timeout of 1800 seconds | |
do script with command my_command | |
tell window 1 | |
set background color to "black" | |
set cursor color to "purple" | |
set normal text color to "magenta" | |
set bold text color to "red" | |
set title displays shell path to true | |
set title displays window size to true | |
set title displays device name to true | |
set title displays file name to true | |
set title displays custom title to true | |
set position to {644, 400} | |
end tell | |
end timeout | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment