Last active
December 25, 2015 19:39
-
-
Save jordansaints/7029119 to your computer and use it in GitHub Desktop.
Duplicates Chrome's currently open tab in the background; most convenient when assigned to a keyboard shortcut.
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
-- Duplicate Chrome's currently open tab in the background | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Google Chrome" | |
activate | |
end tell | |
tell application "System Events" to key code 37 using {command down} -- cmd+L focuses on omnibar | |
tell application "System Events" to key code 36 using {command down} -- cmd+Return duplicates tab in background |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment