As I’ve mentioned, I’m a bit… ok… a lot of a geek.  One of the coolest apps available for MacOS is Fluid.  This basically allows you to turn any website into a mini-app.  Great especially if there are websites you visit for either personal or even business use on a constant basis.  Instead of having to hunt through various tabs / windows / etc, you basically turn it into it’s own app.  There are ways to approach some of the same features other ways, but this goes beyond a “separate browser window” with a number of really neat features and extensibility.  And, the apps can act totally separate from each other: which means if for business reasons you have access to two SalesForce instances, or for personal reasons you have two Facebook logins, you can have these as separate Fluid apps running at the same time.

One of the items that have come up is how one can click on a link and have it auto-open in a specified Fluid app and not the default browser – such as a SalesForce link?  There is a pay-for app that does it, but one of the responses at the discussion below talks about a simple Apple Script you can write that does it for you.  Only caveat is that technically that script IS your “default browser”.  However, if the URL you’re clicking on doesn’t match the criteria of any of the specific URLs you have in the script, then it does have a default browser in that.  The gist of the script is below.  The forum I found this answer is listed below as well, with the script source located on GitHub.

web browser – Open a specifc URL in Fluid.app – Ask Different.

Gist of Script:

on open location this_URL

if this_URL contains “facebook.com” then

tell application “<path to alternate browser/app>”

activate

open location this_URL

end tell

else if this_URL contains “www.linkedin.com” then

tell application “<path to alternate browser/app>”

activate

open location this_URL

end tell

else

— default browser here

tell application “<path to default browser>”

activate

open location this_URL

end tell

end if

 

end open location

One comment on “MacOS: Open a specifc URL in non-default browser or Fluid.

Leave a Reply

Your email address will not be published. Required fields are marked *