Skip to content

Instantly share code, notes, and snippets.

@DavidFrahm
Last active October 20, 2015 19:22
Show Gist options
  • Save DavidFrahm/613bd7800cbf7b6052f6 to your computer and use it in GitHub Desktop.
Save DavidFrahm/613bd7800cbf7b6052f6 to your computer and use it in GitHub Desktop.
AppleScript for launching Chrome Canary for local development
do shell script "/Applications/Google\\ Chrome\\ Canary.app/Contents/MacOS/Google\\ Chrome\\ Canary --user-data-dir=/Users/$USER/Library/Application\\ Support/Google/ChromeCanaryTestUnsecure --new-window --window-position=0,0 --window-size=1440,900 --incognito --disable-web-security -–allow-file-access-from-files > /dev/null 2>&1 &"
delay 1
tell application "Google Chrome Canary"
activate
tell application "System Events" to keystroke "j" using {command down, option down}
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment