Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save TomatoFryEggs/efba1ea77269edb25026922195c25c91 to your computer and use it in GitHub Desktop.
Save TomatoFryEggs/efba1ea77269edb25026922195c25c91 to your computer and use it in GitHub Desktop.
Open Safari's foremost url in Google Chrome (useful for flash resistance)
(*
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