I'm trying to setup a periodic sync schedule in macOS Monterey every 30 minutes (unless another sync is already running) that activates automatically on login. The problems I'm having:
I've tested the attached script below which works in zsh terminal. I tried creating an automator application running the same exact script but when I run the script via the created app, automator says "rclone command not found". Why is that?
How to run the script on login?
How to run the script periodically as long as another instance is NOT running?
Optional: How to handle sleep gracefully?
What is your rclone version (output from rclone version)