davestewart
8/25/2014 - 12:12 PM

Start Server Apple Script

Start Server Apple Script

# 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"