Skip to content

Instantly share code, notes, and snippets.

@fryn
Last active November 14, 2016 15:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save fryn/9f2f2de1aaa6e577432f to your computer and use it in GitHub Desktop.
Save fryn/9f2f2de1aaa6e577432f to your computer and use it in GitHub Desktop.
Open Chrome Tab in Safari or Firefox
-- Open URL of currently active Google Chrome tab in Firefox
--
-- Open Automator -> Service.
-- At the top, select "no input" and Google Chrome.
-- Find "Run AppleScript" in the library, and drag it to the right.
-- Paste this code in the textbox.
-- Save this script as "Open in Firefox".
-- Open System Preferences -> Keyboard -> Keyboard Shortcuts -> Services.
-- Assign a shortcut to "Open in Firefox".
tell application "Google Chrome" to set location to URL of active tab of front window
do shell script "open -a Firefox " & quoted form of location
-- Open URL of currently active Google Chrome tab in Safari
--
-- Open Automator -> Service.
-- At the top, select "no input" and Google Chrome.
-- Find "Run AppleScript" in the library, and drag it to the right.
-- Paste this code in the textbox.
-- Save this script as "Open in Safari".
-- Open System Preferences -> Keyboard -> Keyboard Shortcuts -> Services.
-- Assign a shortcut to "Open in Safari".
tell application "Google Chrome" to set location to URL of active tab of front window
do shell script "open -a Safari " & quoted form of location
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment