Skip to content

Instantly share code, notes, and snippets.

@kevinold
Forked from fryn/openinfirefox.scpt
Created September 24, 2015 18:24
Show Gist options
  • Save kevinold/ce04e7be27c594267d00 to your computer and use it in GitHub Desktop.
Save kevinold/ce04e7be27c594267d00 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