Forked from imathis/Open-Safari-URL-in-Chrome.scpt
Created
February 14, 2017 03:34
-
-
Save TomatoFryEggs/efba1ea77269edb25026922195c25c91 to your computer and use it in GitHub Desktop.
Open Safari's foremost url in Google Chrome (useful for flash resistance)
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
(* | |
Opens current url of foremost safari window in Google Chrome. | |
Useful for flash resisters who prefer the Safari browser | |
Store in ~/Library/Scripts/Applications/Safari | |
Can be invoked via Launchbar, and other launchers. | |
*) | |
tell application "Safari" | |
activate | |
set sameURL to URL of document 1 | |
end tell | |
tell application "Google Chrome" | |
open location (sameURL) | |
activate | |
end tell |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment