In Lin Castor (which you need to double-click twice to fully open for editing): on handle_url(args) if (|URL| of args starts with "https://mail.google.") then tell application "Google Chrome" open location |URL| of args end tell else if (|URL| of args starts with " then tell application "Firefox" open location |URL| of args end tell else tell application "Safari" open location |URL| of args end tell end return 1 end Obviously you should customize the code to suite your own specific needs.
You can validate the script right in Lin Castor before saving/activating it.
Thanks for your many years of attention and everything you've done to make the site such a valuable resource.
I sometimes find the Java setup on my various Apple devices to be a mystery.
Recently, I was trying to get a Java applet to run in the same way on 2 i Macs and my Mac Book Air.