x74353 / Amphetamine-Enhancer

Add new abilities to the macOS keep-awake utility, Amphetamine.
MIT License
944 stars 45 forks source link

Scripting Amphetamine #8

Open warmup72 opened 4 years ago

warmup72 commented 4 years ago

Hi, thx for the cool tool. I think it would be great to have a scripting-interface - so you will be able to trigger every event you want to - e.g. TimeMachine - Today there is no option to power down the Mac after ™ has finished. With a script you can performe a "tmutil status | grep ...." and get back 1 or 0 Amphetamine can react on the exit-code of the Skript e.g. exit 0 ==> tripper event exit <> 0 wait some time and try it again.