wmorland / alfred-py3-default-browser Goto Github PK
View Code? Open in Web Editor NEWA modern Alfred workflow for switching the default browser on macOS
License: MIT License
A modern Alfred workflow for switching the default browser on macOS
License: MIT License
[05:25:25.174] Py3 Default Browser[Script Filter] Queuing argument '(null)' [05:25:25.252] Py3 Default Browser[Script Filter] Script with argv '(null)' finished [05:25:25.264] ERROR: Py3 Default Browser[Script Filter] Code 1: Traceback (most recent call last): File "/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/defaultbrowser.py", line 15, in <module> import objc File "/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/lib/objc/__init__.py", line 6, in <module> from . import _objc ImportError: cannot import name '_objc' from partially initialized module 'objc' (most likely due to a circular import) (/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/lib/objc/__init__.py)
If we have fetched it recently then use the previous list and then update in the background
Currently we just use generic icons. By using the same icons as used in by the App (for example in the doc) it will be easier for users to quickly pick a browser at a glance.
We will need to either store or fetch the icons and then set them when we add items:
alfred-py3-default-browser/defaultbrowser.py
Lines 45 to 50 in c8ea635
For reference @stuartcryan does this by having a folder with different images already available https://github.com/stuartcryan/defaultbrowser-alfred-workflow/tree/master/workflow/images
alfred-py3-default-browser/.gitignore
Line 135 in 71ef1a8
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.