Open Current Tab of Chrome in Firefox with Keyboard Shortcut [Mac OS X]

I use both Firefox and Chrome on all my computers. Firefox is for general browsing, and Chrome is for all Google-related stuff. For such usage, I often have to switch between Firefox and Chrome as some of the extensions that I am using are specific to either Firefox or Chrome. This is where extensions like “Open URL in Chrome” (Firefox extension) and “Open URL in Firefox” (Chrome extension) come in handy. They allow you to open a URL from Firefox in Chrome and vice versa, so you can switch between browsers easily. The only hiccup is if you are using a Mac, the Chrome extension doesn’t work. This means that you won’t be able to use the extension to open a current URL in Firefox. Luckily there is a workaround. In fact, there is an easier method that doesn’t require any installation of an extension.

In this tutorial I am going to show you how you can open the current Chrome URL in Firefox with a keyboard shortcut (note that you can do the same for Firefox).

The way to go about doing this is to create a service with Automator that can grab the current URL in Chrome and open it in Firefox.

1. Open Automator from the Launchpad.

openurl-in-firefox-automator-launchpad

2. Select “Service” from the Automator Startup screen.

openurl-in-firefox-automator-select-service

3. On the left pane, select “Utilities -> Run AppleScript,” and drag it to the workspace. At the top of the workflow, change the “Text” to “No Input” and “any application” to “Google Chrome.”

openurl-in-firefox-automator-workspace

4. Paste and replace the code in the AppleScript with the following code:

tell application "System Events"
	if (exists process "Google Chrome") then
		tell application "Google Chrome"
			set urlChrome to get URL of active tab of first window
		end tell
		
		tell application "Firefox"
			open location urlChrome
			activate
		end tell
	end if
	
end tell

What this code does is first check if Google Chrome is running. If it is, it will then grab the URL of the active tab and load it in Firefox. If Google Chrome is not running, this code will not do anything.

You can now test it by pressing the “Play” button.

4. If it is working, you should see the webpage that you loaded in Chrome showing up in the Firefox browser. Back in the Automator, save the service.

openurl-in-firefox-automator-save-service

5. The last thing to do is to assign a keyboard shortcut to this application. Open “System Preferences” and go to “Keyboard -> Shortcuts.” On the left pane, select “Services.” Scroll down the list until you see the service that you created earlier. Assign a keyboard shortcut for this service.

openurl-in-firefox-set-service-keyboard-shortcut

That’s it. Now when you are in Google Chrome, you can press the keyboard shortcut that you set to open the current URL in Firefox. Alternatively, you can access it from the Service menu. Do note that this trick will only work in Google Chrome as the service is specific to Chrome. However, you can modify the code and change all the instances of “Google Chrome” (or “Firefox) to another browser like “Safari” or “Opera” to get it working with the different browsers.

Try it out and let us know if this is useful to you.

Subscribe to our newsletter!

Our latest tutorials delivered straight to your inbox

Damien Oh Avatar

Read next

Suzanne Simard sealed paper birch and Douglas fir seedlings inside plastic bags, fed them carbon-14 and carbon-13 dioxide, and nine days later found carbon had crossed between species through fungal threads in the British Columbia soil beneath her boots
A species of jellyfish called Turritopsis dohrnii can revert its adult cells back to a juvenile polyp stage when injured or starving, effectively restarting its life cycle, and biologists have so far failed to identify any natural limit to how many times it can do this.
Apple’s original 1984 Macintosh keyboard had no arrow keys, no function keys, and no numeric pad because Steve Jobs wanted users to reach for the mouse first. Then Apple quietly sold the missing keys as an accessory.
A Japanese man named Jiroemon Kimura, who lived to 116, was born in 1897 when Queen Victoria still ruled and died in 2013, meaning a single human life personally overlapped with the invention of the airplane, the atomic bomb, the internet, and Instagram
The Hollywood sign originally read HOLLYWOODLAND when it was built in 1923 as a real estate advertisement for a housing development, and it was only meant to stand for 18 months, but nobody ever got around to taking it down and the city eventually adopted it as a landmark
Almost all of the world’s internet traffic does not travel by satellite but through fibre-optic cables lying on the ocean floor, a hidden web of wires crossing the deepest parts of the sea to connect the continents.
People who flip their phone face down on every table aren’t being secretive. They figured out that staying interruptible meant handing their time to whoever rang first
Twitch vs. Facebook Gaming vs. YouTube Gaming: What’s the Best Live Game Streaming Platform?