andy4222 Posted November 8 Posted November 8 (edited) Uses `system_profiler` inbuilt utility https://www.dropbox.com/scl/fi/ia9xw7yj96ij3madjwgw6/Battery.alfredworkflow?rlkey=g6rjylwde4n2phii0ign8ceyr&st=ed2ebx6h&dl=0 Edited November 8 by andy4222
FireFingers21 Posted November 8 Posted November 8 (edited) @andy4222 Thanks for sharing! Lots of useful stats at a glance. I'd like to point out a few things: The workflow doesn't currently work because you call your python script with the python command, which is for Python 2. You should be using the python3 command, as Python 2 stopped shipping with macOS 12.3. The chmod command isn't necessary, as the powerinfo.py file is already executable with the python3 command Your screenshot includes a result from Vítor's System Settings workflow, which might not be clear to some users I'd recommend giving this blog post a read for how to share your Workflow using GitHub. Dropbox isn't a permanent way to share Workflows and requires sharing a new link any time you release an update. There are a lot of Workflows on the forum that have been lost to time because the authors stopped maintaining their Dropbox download links. Edited November 8 by FireFingers21 vitor 1
andy4222 Posted November 8 Author Posted November 8 Thanks. It was out of necessity as I've been tracking my mac deteriorating battery within the first few months of purchase 😐 12 minutes ago, FireFingers21 said: The workflow doesn't currently work because you call your python script with the python command, which is for Python 2. Actually on my mac, I've mapped python to python3 lol. But you are right, should be direct path to python3. I updated the link with python3 now. 12 minutes ago, FireFingers21 said: chmod command isn't necessary Gotcha. I don't know, I faced a few issues with it in the past so usually add that to make sure the executing user get the perms. removed chmod 17 minutes ago, FireFingers21 said: Your screenshot includes a result from Vítor's added new screenshot 12 minutes ago, FireFingers21 said: Workflow using GitHub. Dropbox isn't a permanent way to share Workflows I did review that page in the past when Vitor had reached out when they were initially starting up the gallery, I had a few workflows hosted the same way and they were setting up some creator pages or something similar. I personally don't like using GitHub for anything except personal stuff. And, it does require some work to set it up based on the guidelines shared by Vitor and the team, which I agree are good and necessary. I pretty bad with documentation honestly 😄. Maybe in the future I'll change that and try to document the details according to the guidelines.
andy4222 Posted November 8 Author Posted November 8 (edited) https://www.dropbox.com/scl/fi/ia9xw7yj96ij3madjwgw6/Battery.alfredworkflow?rlkey=g6rjylwde4n2phii0ign8ceyr&dl=0 Edited November 8 by andy4222
andy4222 Posted November 8 Author Posted November 8 (edited) not sure why but I can edit my original post. Don't want people to scroll down to get the latest workflow. Edited November 8 by andy4222
FireFingers21 Posted November 8 Posted November 8 56 minutes ago, andy4222 said: not sure why but I can edit my original post It's a feature of the forum, you only have a certain amount of time to edit your posts. The quality of the forum would heavily drop if everybody could edit the content (and therefore context) of conversations at any point in time. 1 hour ago, andy4222 said: Don't want people to scroll down to get the latest workflow There begins the trade-offs of using a tool like Dropbox. Every solution has its pros and cons, it ultimately comes down to what works best for you as the author. andy4222 1
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