macOS specific - reading calendar information

Ned Deily nad at python.org
Thu Mar 15 22:48:11 EDT 2018


On 2018-03-15 03:58, Christian Gollwitzer wrote:
> Am 15.03.18 um 08:32 schrieb Jan Erik Moström:
>> I would like to read what calendar events I have on a range of days. I
>> would like to get the data from whatever storage Calendar use, in my
>> personal case I sync to iCloud.
[...]
> The native script language is Apple Script or JavaScript. If you want to
> control it from Python, you need a bridge. I have no experience with it,
> but a quick Google search reveals
> https://pypi.python.org/pypi/py-applescript and
> https://docs.python.org/2/library/macosa.html

py-appscript was a great tool but is no longer maintained by its
developer because Apple deprecated much of the interfaces it was built
on.  It still might be useful in this case.

At a lower level, the PyObjC project provides bridging between Python
and Objective C and provides Python wrappers for many macOS system
frameworks, include the CalendarStore framework.

https://pypi.python.org/pypi/pyobjc





More information about the Python-list mailing list