Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shadowhand/40ca071d754d4307c037 to your computer and use it in GitHub Desktop.
Save shadowhand/40ca071d754d4307c037 to your computer and use it in GitHub Desktop.
# Starts server in current folder
tell application "Finder"
set currentDir to POSIX path of ((container of (path to me)) as text)
end tell
tell application "Terminal" to activate
tell application "Terminal"
do script ("cd '" & currentDir & "'")
do script ("python -m SimpleHTTPServer") in front window
end tell
tell application "Google Chrome" to open location "http://localhost:8000"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment