Drafts Scripting Reference

Alarm

Alarms are alerts which can be attached to Reminder and Event objects.

Class Functions

Examples

var list = ReminderList.findOrCreate("Errands");
var reminder = list.createReminder();
reminder.title = "Get more paper towels";

var alarm = Alarm.alarmWithDate((3).days().fromNow());
reminder.addAlarm(alarm);

reminder.update();