Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Add an Alarm "after begin" of a Calendar Event
-
To manage my calendar on my iDevices, I've used the Apple standard Calendar app, then Calendar5 by Readdle because this one offers the copy/paste of events.
But both miss a feature I often use.
I have a lot of events for which I need to be remembered 'x minutes before begin' and 'y minutes before end' (like "drive and take my grandchildren to a tennis lesson". The 2nd alarm can be translated in 'duration - y' minutes after begin. This kind of alarm can't be set in both ios apps I use, but can be defined on iMac.
Thus I wrote a short script for this functionality. Don't forget I'm a beginner in Python and still less in Objc-util, thus my code is surely not zero-defect...I use:
- Objective-C objects
- EKEventStore for calendar
- EKEvent for events
- EKAlarm for alarms
- Dialogs
- date_dialog for asking before and end dates of events to get
(done_button_title= not in doc but found in source of dialogs.py because the title parameter is not displayed) - form_dialog to add/update alarms
- date_dialog for asking before and end dates of events to get
- ui.TableView to display all events between these dates and allow to select o e for updating its alarms
- Objective-C objects