Skip to content

Instantly share code, notes, and snippets.

@jordansaints
Last active December 25, 2015 19:39
Show Gist options
  • Select an option

  • Save jordansaints/7029119 to your computer and use it in GitHub Desktop.

Select an option

Save jordansaints/7029119 to your computer and use it in GitHub Desktop.

Revisions

  1. Jordan Saints renamed this gist Jun 21, 2015. 1 changed file with 0 additions and 0 deletions.
  2. Jordan Saints renamed this gist Apr 13, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. jordansaints revised this gist Oct 17, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions chrome-duplicate-tab
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@
    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
    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
  4. jordansaints revised this gist Oct 17, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions chrome-duplicate-tab
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@
    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
    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
  5. jordansaints renamed this gist Oct 17, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. jordansaints revised this gist Oct 17, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions duplicate-chrome-tab
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@
    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
    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
  7. jordansaints revised this gist Oct 17, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion duplicate-chrome-tab
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@
    -- by Jordan Saints, www.jordansaints.com

    tell application "Google Chrome"
    activate
    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
  8. jordansaints revised this gist Oct 17, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions duplicate-chrome-tab
    Original file line number Diff line number Diff line change
    @@ -4,5 +4,5 @@
    tell application "Google Chrome"
    activate
    end tell
    tell application "System Events" to key code 37 using {command down}
    tell application "System Events" to key code 36 using {command down}
    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
  9. jordansaints revised this gist Oct 17, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion duplicate-chrome-tab
    Original file line number Diff line number Diff line change
    @@ -5,5 +5,4 @@ tell application "Google Chrome"
    activate
    end tell
    tell application "System Events" to key code 37 using {command down}
    delay 0.1
    tell application "System Events" to key code 36 using {command down}
  10. jordansaints created this gist Oct 17, 2013.
    9 changes: 9 additions & 0 deletions duplicate-chrome-tab
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    -- 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}
    delay 0.1
    tell application "System Events" to key code 36 using {command down}