Page 1 of 1

macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 3:38 pm
by ElZitouni
Dear Developers,
how could I access and read out the database containing the reminders and calendar entries of apple's Reminders.app and Calendar.app for macOS?
Many thanks for your help,
Olli.

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 4:38 pm
by Klaus
Hi Olli,

maybe with AppleScript?


Best

Klaus

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 4:39 pm
by ElZitouni
Hello Klaus: I interpret your response in that from within livecode there is no way to access these macOS databases? Best wishes, Olli.

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 5:00 pm
by Klaus
Hi Olli,

sorry, I don't know...


Best

Klaus

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 5:21 pm
by Klaus
You could check the content of folder ~/Library/Calendars and see if that makes any sense to you. :D

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 8:59 pm
by stam
I think the files in ~/Library are binary and probably not easily useable (although happy to be corrected!)

Apple has included a fairly usable applescript API for accessing data like this.

A cursory search shows a simple examples of this - here's a youtube link for accessing the reminders.app data in simple way, but i'm sure you can probably find what you need digging into AppleScript.

Link: https://www.youtube.com/watch?v=bi48YIiLOTA

Re: macOS Reminders and Calendars database

Posted: Wed Sep 15, 2021 9:48 pm
by ElZitouni
Thank you for the link to the video. I have also found a method in python. I'll see whether and how an applescrip; however, I have had never success in executing an applescript out of livecode in the past. It just never worked, and I was never sure what went wrong ...