hammerspoon2-docs
    Preparing search index...

    Function events

    • The events that overlap a date range, sorted by start date.

      EventKit only searches up to four years at a time; a longer range is cut short.

      Parameters

      • start: Date

        The start of the range

      • end: Date

        The end of the range

      • OptionalcalendarIDs: string[] | null

        The ids of the calendars to search (default: all of them)

      Returns HSCalendarEvent[]

      The events

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