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