Safari – Duplicate Tab Next to Itself
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.
--
|
_______________________________________________
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