Last active
August 29, 2015 14:08
-
-
Save squirelo/87ae00ffe30cdeba2b09 to your computer and use it in GitHub Desktop.
This file contains 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 "Google Chrome" | |
repeat with w in windows | |
set i to 1 | |
repeat with t in tabs of w | |
if URL of t starts with "https://mail.google" then | |
set active tab index of w to i | |
set index of w to 1 | |
return | |
end if | |
set i to i + 1 | |
end repeat | |
end repeat | |
open location "https://mail.google.com/mail/u/0/#inbox" | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment