How to set a default within a Macro

I want to make a Macro, where the user can set his preferred browser as a default ONCE, and from than on this browser is used in the macro. I IMHO cannot use “default Browser”, as my default Browser is “Choosy” (https://choosy.app/) which decides, which is the real default browser depending on the URL I am trying to open.

I could have a Variable called “defaultbrowser” and explain the user somewhere that he should put in “firefox”, “Chrome”, “Brave”, “Safari”, but I am hoping for a more elegant solution.
At the end of the day, I would need a way to have the URL in the system Clipboard, of this specific browser. I saw that such things exist for Safari and chrome, but I am missing firefox and Brave. I have a “not so elegant version for firefox” where I can live with, so I am fine, if it would be a mixture of Commands, each different, that at the end I can do the trick so have the URL in the clipboard that would be there, if I put this “defaultbrowser” into front, klick into the URL field, mark the URL, and press CMD+C.
I hope I explained it well enough, many thanks for reading till here.

all the best

Juergen

Argh. Sorry. Found this Get the Browser Page Title & URL for Safari, Chrome, or FireFox I’ll dig into it.

OK, it seems to work similar as my idea, but my situation is:

  1. I am am using on a totally different application like e.g an editor.
  2. I save this APP as “frontend app” in this macro first.
  3. I need to get the URL of my “personal browser” into clipboard
  4. I extract a ticketnumber from this URL and search with this number in another program and start this ticket in the other app to get my working time on this ticket
  5. I get back to by first APP I was working on (e.g. editor)

As choosy is my browser in between, I IMHO cannot use the new features, that to too much magic :slight_smile: at the moment.

Juergen