zeitlings Posted January 19, 2023 Share Posted January 19, 2023 (edited) Default Browser An Alfred workflow to set the default web browser. ▸ Visit on Github ◂ | ▸ Alfred Gallery ◂ Usage Note Set the default web browser using the keyword (default: sdb). The macOS browser change confirmation dialog is automatically accepted. Utility: Use the workflow’s File Action (name: Bundle Identifier Information) to retrieve an application’s bundle identifier. Edited August 14, 2023 by zeitlings v1.3.0 Link to comment
vitor Posted January 19, 2023 Share Posted January 19, 2023 Would it not be doable to have it use /usr/bin/swift in the Run Script with your code inside? That way users wouldn’t need to compile it themselves (seeing as the binary is not signed and notarised) and it could go in the Alfred Gallery. Link to comment
zeitlings Posted January 19, 2023 Author Share Posted January 19, 2023 (edited) I'm not registered with the AppStore, unfortunately, so no notarization for me. It did not even occur to me not to compile it, though. It's definitely doable, the program is simple enough. Give me a second. Edited January 19, 2023 by zeitlings Link to comment
zeitlings Posted January 19, 2023 Author Share Posted January 19, 2023 Done, enjoy. vitor 1 Link to comment
vitor Posted January 20, 2023 Share Posted January 20, 2023 Will be live in the Gallery soon at http://alfred.app/workflows/zeitlings/set-default-browser/. Quick note: you still have the compilation steps in the GitHub README. zeitlings 1 Link to comment
zeitlings Posted April 18, 2023 Author Share Posted April 18, 2023 (edited) v1.2.0 Added File Action utility to get bundle identifiers from apps Added useful failure messages Added configurable keyword Added more default options Added new icon Updated documentation Edited April 18, 2023 by zeitlings Link to comment
andy4222 Posted July 9, 2023 Share Posted July 9, 2023 @zeitlingsThanks for this workflow. Quick question. When triggered, I think the workflow takes 3-4 seconds to show the brlow popup and then click the "Use <Browser>" button. Is that how it is expected to work. Because the other day I triggered it and start typing something (thinking this browser has been changed in the background) and the popup showed up at the same time I pressed the Tab key, that changed the focus. Link to comment
zeitlings Posted July 10, 2023 Author Share Posted July 10, 2023 @andy4222 That is probably the Apple Script taking some time to wake up. MacOS will always ask you if you are sure you want to change the browser. The script focuses that modal window and "clicks" the button to accept the change. If you're switching to an another window before that has happened, the script will fail. So yeah, there might be a delay (also for the swift script to execute if it is called the first time after a while; after that it seems to be cached somewhere and executes faster.) andy4222 1 Link to comment
xilopaint Posted July 25, 2023 Share Posted July 25, 2023 On 1/19/2023 at 5:23 PM, zeitlings said: Add the browsers you’re missing to the list filter and provide the bundle identifiers for them, or remove the ones that you don’t need. You can add a checkbox list in User Configuration so we can uncheck the browsers we don't want listed. Link to comment
zeitlings Posted August 14, 2023 Author Share Posted August 14, 2023 (edited) On 7/26/2023 at 1:53 AM, xilopaint said: You can add a checkbox list in User Configuration so we can uncheck the browsers we don't want listed. Sure, why not 😄 v1.3.0 - Added browser selection to workflow configuration Edited August 14, 2023 by zeitlings v1.3.0 xilopaint 1 Link to comment
xilopaint Posted August 24, 2023 Share Posted August 24, 2023 @zeitlings Would it be possible to add support for SigmaOS? Link to comment
zeitlings Posted August 26, 2023 Author Share Posted August 26, 2023 If it can handle http URLs, it should be possible. With v1.2.0 you can just throw it into the List Filter and check if it works. There is the "Bundle Identifier Information" Universal Action to find the bundle identifier if you need it. Link to comment
xilopaint Posted August 26, 2023 Share Posted August 26, 2023 42 minutes ago, zeitlings said: If it can handle http URLs, it should be possible. With v1.2.0 you can just throw it into the List Filter and check if it works. There is the "Bundle Identifier Information" Universal Action to find the bundle identifier if you need it. Do you need me to check anything to add native support? Link to comment
SteveW Posted March 22 Share Posted March 22 Thanks for your wonderful workflow. I use it to switch between Safari, Arc, Firefox and Ghost browser. I was able to add Ghost browser using you bundle identifier and manually modify the appropiate files (info.plist, list.sh) and add an icon. zeitlings 1 Link to comment
nasri Posted May 2 Share Posted May 2 On 1/20/2023 at 8:08 AM, vitor said: Will be live in the Gallery soon at http://alfred.app/workflows/zeitlings/set-default-browser/. Thank you for the workflow! Cos of you - i upgraded to Alfred 5 so I can make use of your nifty feature TLDR; In case someone is reading and like to know why should you regularly change web browser ? It's part of compartmentalization principle of keeping things together... In this case, 1 web browser is for work (so all web browsing history and suggestions are from my work related internal webpages) and another web browser for something else.. zeitlings 1 Link to comment
vitor Posted May 2 Share Posted May 2 28 minutes ago, nasri said: Thank you for the workflow! All thanks should go to @zeitlings, who created the workflow. Link to comment
zeitlings Posted May 2 Author Share Posted May 2 I'll use the occasion to integrate a few more browsers 😄 Default Browser v1.3.1 - adds Orion - adds SigmaOS - adds Ghost Browser Should be updated on the gallery soon, too. No need to download from Github. Grug and vitor 2 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now