zeitlings Posted January 19 Share Posted January 19 (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 by zeitlings v1.3.0 Link to comment
vitor Posted January 19 Share Posted January 19 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 Author Share Posted January 19 (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 by zeitlings Link to comment
vitor Posted January 20 Share Posted January 20 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 Author Share Posted April 18 (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 by zeitlings Link to comment
andy4222 Posted July 9 Share Posted July 9 @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 Author Share Posted July 10 @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 Share Posted July 25 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 Author Share Posted August 14 (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 by zeitlings v1.3.0 xilopaint 1 Link to comment
xilopaint Posted August 24 Share Posted August 24 @zeitlings Would it be possible to add support for SigmaOS? Link to comment
zeitlings Posted August 26 Author Share Posted August 26 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 Share Posted August 26 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
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