Giter Club home page Giter Club logo

Comments (4)

liias avatar liias commented on July 20, 2024

Hey. You can use "**" as url_pattern

    {
      "source_app": "com.apple.mail",
      "url_pattern": "**",
      "opener": {
        "profile": "/System/Volumes/Preboot/Cryptexes/App/System/Applications/Safari.app/Contents/MacOS/Safari#",
        "incognito": false
      },
      "profile": "",
      "incognito": false
    }

from browsers.

jonnyborbs avatar jonnyborbs commented on July 20, 2024

I tried that but it still opens in Arc - here's a more complete picture of what I'm trying to do.

I have Arc configured to pick up all "docs.google.com" links. But sometimes, I get an email to my personal account that has an embedded Google docs link. That email will always come in from Mail.app. I want Browsers to recognize that I clicked on a link matching that pattern (or any link) from that app, and route it to Safari instead of my work-configured Arc instance.

So, I have an existing URL matcher rule:

 {
      "source_app": null,
      "url_pattern": "*://docs.google.com/**",
      "opener": {
        "profile": "/Applications/Arc.app/Contents/MacOS/Arc#",
        "incognito": false
      },
      "profile": "",
      "incognito": false
    },

And this one always seems to win over the "open ** from mail.app in Safari" rule

from browsers.

liias avatar liias commented on July 20, 2024

I tried changing the order, moving the mail one to top, and that did do the trick for me.
Just in case, exit Browsers while editing the config file, let me know if that helped.

from browsers.

jonnyborbs avatar jonnyborbs commented on July 20, 2024

Yes! Ok, so I needed two things. To have the rules in the right order and to correct the URL matching pattern. Now this works as expected. Appreciate the help and great app as always 😄

from browsers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.