AppHouseKitchen / AlDente-Charge-Limiter

macOS menubar tool to set Charge Limits and prolong battery lifespan
https://apphousekitchen.com/
Other
7.66k stars 286 forks source link

[Feature Request] AppleScript Interface. #638

Open andrewcrook opened 2 years ago

andrewcrook commented 2 years ago

expanding on

637 command line interface

541 Support "Shortcuts"

Also add an AppleScript Interface

ConnorBosman commented 2 weeks ago

Expanding on this, what about maybe using the Mac URL shortcut to automatically trigger shortcuts? That would be great imo, for example by automatically triggering a shortcut upon a specific battery percentage.

https://support.apple.com/guide/shortcuts-mac/run-a-shortcut-from-a-url-apd624386f42/mac

andrewcrook commented 2 weeks ago

@ConnorBosman do you mean so you can add hooks that AlDente can call shortcut . So it can start shortcuts on certain events?

ConnorBosman commented 2 weeks ago

Exactly. The current tasks is nice, but it’s not very useful. I’d for example like to turn on a fan automatically when my battery gets too hot.