• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Safari – Duplicate Tab Next to Itself
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari – Duplicate Tab Next to Itself


  • Subject: Safari – Duplicate Tab Next to Itself
  • From: Christopher Stone <email@hidden>
  • Date: Thu, 03 Dec 2015 05:04:38 -0600

Hey Folks,

Ever need to duplicate a tab in Safari?  I do occasionally.  Here's a quick method.

Run the following AppleScript via FastScripts, Keyboard Maestro, or other AppleScript-runner utility.

# Duplicate Safari Tab next to itself.
set js to "
var docURL = document.URL;
var open_link = window.open('','_blank');
open_link.location=docURL;
"
tell application "Safari"
  tell front document
    do _javascript_ js
  end tell
end tell

Or place this _javascript_ in a bookmark on the Favorites Bar and access via ⌘⌥[0-9] or mouse-click.

_javascript_:var docURL = document.URL;var open_link = window.open('','_blank');open_link.location=docURL;

Tested only on OSX 10.11.1.

--
Best Regards,
Chris

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: silly errors
  • Next by Date: Smart-File Unsaved Script
  • Previous by thread: Re: Smile - Working Load Web Window with Log-In
  • Next by thread: Smart-File Unsaved Script
  • Index(es):
    • Date
    • Thread