I would like to run a shell script daily, but not necessarily at a specific time. The computer the script runs on is switched on at irregular times, and no assumptions can be made when that will be.
For that, I would like to get launchd to behave a bit like anacron: It only needs to run the job once a day, at any convenient time.
Most posts I have seen here or on other sites describe things like "running every day at 05:00", which is not helpful for me if the machine is off at that time...
How do I write a launchd plist specifying that behaviour?