thanks very much for a superb macro !
After xcode installation + license approval, everything works fine.
I have specific situation where I know which browser I want to switch to, and would like to avoid the user input part.
I would have 2 questions:
1- what would be the general procedure to add a browser (Vivaldi for example) to the list. If I trigger the macro and click on see all browsers, vivaldi looks like
com.vivaldi.Vivaldi
PS Vivaldi has a nice note taking panel.
2- I sometimes know exactly which browser I need to set as default, and part of a macro.
For example, I created a macro (inspired from the forum) to batch open all Safari Reading List URL links in another browser, for example Firefox which, in my setup, has all the proper proxies configured.
I am trying to create a variant of your macro which would simply: set default browser to firefox (which I would include at the start of the reading list macro, and reset default to chrome at the end).
Is this correct ? how would I modify it as a stand-alone macro which sets the default to a specific browser be it chrome, firefox, safari or vivaldi ?
As far as I can see, the only action which actually sets the default browser (excluding the input) in your macro is the action/script below. The code is incomprehensible to me.
I would create variants for chrome, firefox, safari and vivaldi.
thanks again very much !
// Based on script by @Tom
import Foundation
let browserStr = ProcessInfo.processInfo.environment["KMVAR_Local__Browser"]!
LSSetDefaultHandlerForURLScheme("http" as CFString, browserStr as CFString)