Skip to content

Instantly share code, notes, and snippets.

@jordansaints
Last active December 25, 2015 19:39
Show Gist options
  • Save jordansaints/7029119 to your computer and use it in GitHub Desktop.
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.
-- 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