Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.8: Open a specific browser based on the URL' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.8: Open a specific browser based on the URL
Authored by: mcoyle1960 on Aug 28, '14 07:42:37PM

Ugh. I really want this to work, but it's not. I want Safari to handle only Facebook, fo Firefox is my default browser and I want Safari to open for Facebook notifications.

Here is my script after validation:

on handle_url(args)
if (|URL| of args starts with "https://www.facebook.") then
tell application "Safari"
open location |URL| of args
end tell
end if
return 1
end handle_url

When I click on a facebook webloc or a notification, it still opens Firefox. Suggestions?



[ Reply to This | # ]
10.8: Open a specific browser based on the URL
Authored by: crarko on Sep 04, '14 03:08:24AM

Let me re-check this to see if anything got mangled in the hint. It seems to me I did have to adjust a few things to make it work on my Mac.



[ Reply to This | # ]
10.8: Open a specific browser based on the URL
Authored by: tom_sep on Sep 10, '14 11:52:55PM

Hi, I tested it on 10.9 and it does work as described - very strange (sorry, not that much helpful, I know)

If you want to intercept HTTP/HTTPS make sure the registered scheme says http,https. You may also try it with your own scheme (e.g. test-http) to make sure it works first.

Also, make sure the AppleScript tab is active when you hit Save and Activate - the active tab chooses what handler to run no matter what you write in

If you still have a problem, don't be afraid to contact the author. He tends to be very responsive.



[ Reply to This | # ]