Skip to content

Instantly share code, notes, and snippets.

@patrickfox
Created March 13, 2018 18:49
Show Gist options
  • Save patrickfox/af2b86861529faccc3674864c86e8d46 to your computer and use it in GitHub Desktop.
Save patrickfox/af2b86861529faccc3674864c86e8d46 to your computer and use it in GitHub Desktop.
AppleScript Example - open terminal, navigate to dir and fire up http-server; then, tell Chrome to open a new tab
tell application "Terminal"
activate
do script "cd ~/path/to/dir && http-server"
end tell
tell application "Google Chrome"
open location "http://mydomain.com/"
delay 1
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment