Created
May 22, 2018 02:47
-
-
Save mrtechnique/5be7ee5cf3ca4602a2546ee73f49566e to your computer and use it in GitHub Desktop.
Alfred Chrome Incognito Workflow
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
tell application "System Events" | |
set myList to (name of every process) | |
end tell | |
if (myList contains "Google Chrome") is false then | |
do shell script "open -a Google\\ Chrome --new --args -incognito" | |
else | |
tell application "Google Chrome" | |
activate | |
tell application "System Events" to keystroke "n" using {command down, shift down} | |
open location "https://google.com/search?q=keyword+number+1" | |
set myTab to make new tab at end of tabs of window 1 | |
set URL of myTab to "https://google.com/search?q=keyword+number+2" | |
set myTab to make new tab at end of tabs of window 1 | |
set URL of myTab to "https://google.com/search?q=keyword+number+3" | |
end tell | |
end if |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment