4 ms·
Thanks for pointing out the dark mode issue. Hope to address it soon. Regarding trigger i meant there is no standard scheduled system like a cronjob. The arti
by xiwenc 3y ago
Thanks for pointing out the dark mode issue. Hope to address it soon.
Regarding trigger i meant there is no standard scheduled system like a cronjob.
The article is meant to inspire others. It solves a very specific problem i have. It’s far from perfect but does the job.
Will take a look at your WFH mode suggestion. Timer/alarm based triggers require manual run confirmation. Allowing non-interactive run is a must in my case to avoid distractions.
- criddell 3y ago> no standard scheduled system like a cronjob Personal automations are pretty close. I use them to run shortcuts at specific times. If you wanted to run a Shortcut hourly from, say, 7 am to 7 pm, you could manually create those 13 automations or maybe you could use Jellycuts to create one and then cut-and-paste it to make the other 12. Edit: I just searched for it and here’s an article that talks about a cron-like Shortcut: https://www.joshholtz.com/blog/2021/06/23/automating-ios-shortcuts-the-cron-job-way.html https://www.joshholtz.com/blog/2021/06/23/automating-ios-sho... I haven’t looked at it so I have no way of knowing if it works or if there’s an easier way to do it now (that article is two years old).
- tzs 3y ago> Regarding trigger i meant there is no standard scheduled system like a cronjob Do you have a Mac? If so maybe you could run your shortcut periodically from cron on the Mac. I just tested and shortcuts can be run from cron (once you get cron working...[1]). For example I have a bunch of shortcuts that do things to my Denon A/V receiver, and added a crontab entry to run the one that mutes the receiver, and it worked. You can invoke shortcuts with the "shortcuts" command. E.g., here was my mute test's crontab line: */1 * * * * shortcuts "Denon Mute On" That doesn't involve interacting with any GUI apps (it just uses the "Run script over SSH" shortcut action to run a script that is on my RPi that does the actual work of dealing with the Denon receiver's network API). To check that dealing with GUI apps was OK from cron I tried another shortcut I have, "SaveInnerHTML" that saves document.documentElement.innerHTML from the active Safari tab into a file. That worked too. [1] Apparently sometime around Catalina, when they were beefing up the permissions system and privacy protection cron stopped working unless you gave it permissions. You apparently now have to go into the "Privacy & Security" settings and /usr/sbin/cron full disk access.