12

let say I have two chrome user, one of them is logged in with my work account and another one is logged as my personal account.

I logged in my GitHub/StackOverflow etc accounts with my personal accounts in chrome personal account . in the work user, I logged with my work accounts. the chrome is the default browser in my machine. what I need is that when there is a link has posted on slack I have this option to select with which user I want to open it. it could happen in the slack level and the second level could be browser level to ask which user I want to open the link before opening it.

I asked it here because I feel this request is not just mine and a lot of people had/has the same preferences.

I found some option like browserchooser2 and Account Surfer for windows OS but I haven't found anything for MacOS.

many thanks for sharing your info with me about this.

Yuseferi
  • 7,931
  • 11
  • 67
  • 103
  • This isn't really a programming question, so I'm not sure that it's [on-topic](https://stackoverflow.com/help/on-topic). I think [Ask Different](https://apple.stackexchange.com) (answers for your Apple questions) would have been more appropriate for this question. They have a [closely related](https://apple.stackexchange.com/questions/234950/open-specific-links-in-specific-browsers) question there. – Nic Jan 09 '22 at 17:30

2 Answers2

3

Choosy on macOS can give you a prompt to open links in Chrome or Safari, which is almost what you want.

Or another tool called Open in Profile lets you choose which Chrome profile will be used to open links clicked in other applications.

I don't know of any tool for macOS that lets you choose a specific browser profile every time you click a link. Of course the workaround is to copy and paste the link into the browser profile you want.

Nic
  • 4,319
  • 5
  • 29
  • 36
  • thanks for your answer , but looks like it just opens it in different browser not different profile – Yuseferi Jan 09 '22 at 11:53
  • 1
    @Yuseferi I found another tool called "Open in Profile" which can open links in a specific profile, but still doesn't give you a prompt every time you click a link. :( – Nic Jan 09 '22 at 17:26
2

This gist solved it for me. Here's my "finicky" config, which opens all urls matching "app.raygun.com/*" in Chrome "Profile 4":

module.exports = {
  defaultBrowser: "Google Chrome",
  options: {
    hideIcon: false,
    checkForUpdate: true,
  },
  handlers: [
    {
      match: ({ url }) => url.protocol === "slack",
      browser: "/Applications/Slack.app",
    },
    {
      match: "app.raygun.com/*",
      browser: {
        name: "Google Chrome",
        profile: "Profile 4",
      },
    },
  ],
};
chaserino
  • 154
  • 2
  • 4