First obtain an iCalendar (.ics) file, for example from the Stadt Zürich Entsorgung & Recycling.
- Download the script file
add_alarms_to_ics.sh
from here - Open your Terminal / Command Line Interface app (on macOS:
Terminal.app
for example) - Use the following or a similar command to make the script executable:
chmod +x /path/to/add_alarms_to_ics.sh
- Run the script on the desired iCalendar (.ics) file, with this command:
`/path/to/add_alarms_to_ics.sh "/path/to/icalendar.ics" 9 "backup"
"/path/to/icalendar.ics"
= you may also just drag'n'drop the file into your terminal/cli window9
(or any other number) = set Reminder -X hours before the events start"backup"
(Optional) = backup the original iCalendar .ics file before modifying it