Last active
October 12, 2016 12:24
-
-
Save david-hodgetts/16f023b9c6288f126646a82491290a36 to your computer and use it in GitHub Desktop.
applescript that launches Python's simple http server in the directory containing the script
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
tell application "Finder" | |
set cwd_ to folder of (path to me) as alias | |
set path_ to (POSIX path of cwd_) | |
tell application "Terminal" | |
activate | |
do script ("cd " & quoted form of path_) & ";python -m SimpleHTTPServer" | |
end tell | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment