hendrik-scholz / icloud-api

:cloud: iCloud API
MIT License
1 stars 1 forks source link

Retrieve all reminders on a specific reminder list #2

Open hendrik-scholz opened 3 years ago

hepcat72 commented 3 years ago

Good luck! Incidentally, WRT my last comment, I learned that my Siri Shortcut automation needs manual intervention and is thus useless unless I create time-triggered automations (which are limited to once a day - so I would have to create 24 of them to run every hour). So I went back to revamp my AppleScript. I thought I was clever in trying the GUI method and fall back to the Reminders AppleScript interface if the Reminders App was on a different desktop, but it turns out that running a script via osascript on a cron job gets flagged by the tccd as "indirect access" and routes the requests through a very slow security check. So retrieving all reminders (from any/all list/s*) can take over 10 minutes (in my use case with a large reminders database) (though the run time seems to vary wildly) as opposed to reliably taking around 40 seconds when run from the Script Editor.

So if you succeed with this project, I will definitely find it very useful, because solving this issue in AppleScript has proven to be really labor-intensive. The GUI method appears to run fast & reliably (4 seconds versus 10 in a small test) when the Reminders GUI is on the current desktop, but fails with an error if you're say, watching Netflix full screen.

* tccd, I learned today is the "Transparency Consent and Control" daemon