Last active
December 25, 2015 19:49
-
-
Save jordansaints/7030440 to your computer and use it in GitHub Desktop.
Duplicates Firefox's currently open tab; 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 Firefox's currently open tab | |
-- by Jordan Saints, www.jordansaints.com | |
tell application "Firefox" | |
activate | |
end tell | |
delay 0.2 | |
tell application "System Events" to key code 37 using {command down} -- cmd+L focuses on address bar | |
tell application "System Events" to key code 36 using {option down} -- alt+Return duplicates tab in foreground |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment