Hello All,
I'm looking for a script or any other method that when users click on certain links (either from within an e-mail, Word doc, etc.) those certain links would open in Chrome REGARDLESS OF THE DEFAULT BROWSER setup for that user.
I've tried to create a basic if else script (SEE BELOW) to accomplish this and pushed it out to several machines, however, it's not quite working - when I click on those certain links, they still open in Safari (THE DEFAULT BROWSER) as opposed to Chrome.
Appreciate any help/guidance on this - thank you.
on open location this_URL if this_URL contains "www.jamfnation.com" then tell application "/Applications/Google Chrome.app" activate open location this_URL end tell else if this_URL contains "www.espn.com" then tell application "/Applications/Google Chrome.app" activate open location this_URL end tell else if this_URL contains "www.abc.com" then tell application "/Applications/Google Chrome.app" activate open location this_URL end tell else if this_URL contains "www.cnn.com" then tell application "/Applications/Google Chrome.app" activate open location this_URL end tell
else
-- default browser here
tell application "/Applications/Safari.app"
activate
open location this_URL
end tell
end if
end open location