Skip to content

Instantly share code, notes, and snippets.

@toastdriven
Created January 7, 2011 22:46
Show Gist options
  • Select an option

  • Save toastdriven/770244 to your computer and use it in GitHub Desktop.

Select an option

Save toastdriven/770244 to your computer and use it in GitHub Desktop.
Private Browse for Textual
# Drop me in ``~/Library/Application Support/Textual/Scripts``...
# Usage is: ``/privatebrowse <url>``
on textualcmd(input)
tell application "Google Chrome"
activate
end tell
tell application "System Events"
tell process "Google Chrome"
tell menu bar 1
tell menu bar item "File"
tell menu "File"
click menu item "New Incognito Window"
end tell
end tell
end tell
keystroke "l" using command down
keystroke input
key code 36
end tell
end tell
end textualcmd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment