You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Tell Safari to open current page in another browser?

I'm trying to right a script to run as a service in Safari that opens the current page in Firefox. I have this one that works for Chrome. I tried subbing out "Google Chrome" for Firefox but that doesn't work.

on run {input, parameters}
	
	tell application "Safari"
		set theURL to URL of current tab of window 1
	end tell
	
	tell application "Google Chrome"
		if (count of (every window where visible is true)) is greater than 0 then
			tell front window
				make new tab
			end tell
		else
			make new window
		end if
		set URL of active tab of window 1 to theURL
		activate
	end tell
	
	return input
end run

iMac 21.5″, macOS 13.2

Posted on Feb 27, 2023 7:41 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 28, 2023 3:45 AM

Create another Automator Service/Quick Action and instead of the tell Google block, just use the AppleScript I posted. As a Service, the following will appear on the Safari Services menu > General section. Again, this was tested on macOS 13.2.1 with Safari 16.3 and Firefox 110.0.



Similar questions

7 replies

Tell Safari to open current page in another browser?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.