Created
January 7, 2011 22:46
-
-
Save toastdriven/770244 to your computer and use it in GitHub Desktop.
Private Browse for Textual
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
| # 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