Action
Remind Me Tomorrow
Create a reminder from the current draft with an alarm at 09:00 tomorrow.
Steps
-
script
let title = draft.processTemplate("[[title]]"); let notes = draft.processTemplate("[[body]]"); let rem = ReminderList.default().createReminder(); rem.title = title; rem.notes = `${notes}\n\ndrafts://x-callback-url/open?uuid=${draft.uuid}`; let date = new Date(); date.setDate(date.getDate() + 1); date.setHours(9, 0, 0); rem.addAlarm(Alarm.alarmWithDate(date)); if (!rem.update()) context.fail();
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.