hammerspoon2-docs
    Preparing search index...

    Class HSReminder

    A reminder from the Reminders app, as returned by hs.eventkit.incompleteReminders() and its relatives.

    Each property is read from the underlying reminder when you access it. A reminder is a snapshot: if it changes in Reminders after you fetched it, fetch it again to see the change.

    The properties are read-only; change a reminder with update(), which saves the change straight away, and delete it with remove().

    Don't create these yourself; they come from hs.eventkit, and hs.eventkit.createReminder() makes new ones.

    Index
    alarmDates: Date[]

    When the reminder's alerts go off. Only alerts at a set time are listed; Reminders can also have alerts for arriving at or leaving a place, which update() leaves alone.

    A due date doesn't produce a notification by itself: add an alert for that.

    completionDate: Date | null

    When the reminder was completed, or null if it hasn't been.

    creationDate: Date | null

    When the reminder was created.

    dueDate: Date | null

    When the reminder is due, or null if it has no due date. For a reminder that is due on a day rather than at a time (see isAllDay), this is the start of that day.

    externalID: string | null

    The identifier the server gives the reminder, which is the same on every device but isn't guaranteed to be unique.

    id: string

    The reminder's identifier on this Mac, which hs.eventkit.reminder() finds it by.

    isAllDay: boolean

    Whether the reminder is due on a day, rather than at a particular time. Always false for a reminder with no due date.

    isCompleted: boolean

    Whether the reminder has been completed.

    isRecurring: boolean

    Whether the reminder repeats.

    lastModifiedDate: Date | null

    When the reminder was last changed.

    listID: string | null

    The identifier of the reminder's list, as in hs.eventkit.reminderLists().

    listTitle: string | null

    The title of the reminder's list.

    notes: string | null

    The reminder's notes.

    priority: string

    The reminder's priority: "none", "low", "medium" or "high".

    title: string

    The reminder's title.

    url: string | null

    The URL attached to the reminder.

    • Deletes the reminder.

      The object keeps its properties afterwards, but it can't be updated or saved again.

      Returns boolean

      true once the reminder has been deleted

      Throws an Error on failure; wrap calls in try/catch to handle it.

    • Returns a plain object holding all of the reminder's properties, for JSON serialisation.

      JSON.stringify() calls this automatically, so you rarely need to call it yourself.

      Returns {
          alarmDates: Date[];
          completionDate: Date | null;
          creationDate: Date | null;
          dueDate: Date | null;
          externalID: string | null;
          id: string;
          isAllDay: boolean;
          isCompleted: boolean;
          isRecurring: boolean;
          lastModifiedDate: Date | null;
          listID: string | null;
          listTitle: string | null;
          notes: string | null;
          priority: "medium" | "none" | "low" | "high";
          title: string;
          url: string | null;
      }

      An object with every property of the reminder, with the values of its properties of the same names

    • Changes some of the reminder's properties and saves the change.

      The properties changes leaves out are left as they are.

      If anything in changes is invalid, or the change can't be saved, this throws and the reminder is left as it was.

      Parameters

      Returns HSReminder | null

      The reminder, for chaining

      Throws an Error on failure; wrap calls in try/catch to handle it.