I can't seem to find the answer that combines the two things I need: on startup and in the background.
So I've made a script that checks the battery percentages of the mouse and keyboard for my mac (Catalina). The script runs indefinitely performing a check every 30 minutes.
Currently, my best option was that I created a .app file using automator that runs the python script. I then put this in 'login items' and it runs on startup, very good.
The only problem with this is that I now get an annoying cog that spins around permanently in the menu bar.
I've read that using launchctl would allow the script to run in the background, but apparently you can't run it from startup this way. Is that true?
Does anyone know how I can achieve both requirements: having the script run on startup, and have it run without me noticing that it's running?