osascript.py
:apple: :snake: osascript (AppleScript) python implementation (by andrewp-as-is)
ChargeMon
Simple macOS StatusBar app to remind you to unplug your laptop when sufficiently charged (by RhetTbull)
osascript.py | ChargeMon | |
---|---|---|
1 | 1 | |
33 | 8 | |
- | - | |
10.0 | 3.7 | |
over 3 years ago | 9 months ago | |
Python | Python | |
The Unlicense | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
osascript.py
Posts with mentions or reviews of osascript.py.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
For the Macbook Pro, how would you create a script in which an alarm goes off when the power cord is disconnected?
And to change the volume, you could use osascript
ChargeMon
Posts with mentions or reviews of ChargeMon.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-09.
-
For the Macbook Pro, how would you create a script in which an alarm goes off when the power cord is disconnected?
I've got a Mac OS status bar app written in Python here that could easily be modified to do this. It uses rumps to create the status bar app and psutil to monitor the plugged/unplugged state and charge status. I use it to remind me to plug in the charger when charge gets below a certain level and unplug the charger when charge gets above a certain level. Here's how to get the plugged in status (which you could check periodically on a loop)
What are some alternatives?
When comparing osascript.py and ChargeMon you can also consider the following projects:
rumps - Ridiculously Uncomplicated macOS Python Statusbar apps
py-applescript - An easy-to-use Python wrapper for NSAppleScript, allowing Python scripts to communicate with AppleScripts and AppleScriptable applications.