Best app format for cron type execution?

Hi,


For a while I have used a bash script, executed by cron, to warn me of low battery levels on bluetooth devices (mouse/keyboard). I have the threshold set high enough that I can get to the end of the day until I need to charge, as we all know you can't use the mouse and charge 🙂


A few people asked me about it, then a few more. I am usually doing iOS stuff, so am not too familiar with OSX apps. What would be the best packing format (app, stay as a bash script, etc) to be able to distribute this functionality (free) to non-technical people? I mean to rewrite the bash version into Swift, and making use of IOKit or something.


The tidied up bash version is here: https://github.com/thisdougb/MagicPowerAlert


But I could imagine some UI that lets you confgure when the alert happens, and what the threshold should be. Nothing more.


Is this the sort of thing Automator is for (never used it) ?


thanks,