hammerspoon2-docs
    Preparing search index...

    Function doAt

    • Create and start a timer that fires at a specific time

      Parameters

      • time: number

        Seconds since midnight (local time) when the timer should first fire

      • repeatInterval: number

        If provided, the timer will repeat at this interval. Pass 0 for one-shot.

      • callback: () => void

        A JavaScript function to call when the timer fires

      • OptionalcontinueOnError: boolean

        If true, the timer will continue running even if the callback throws an error

      Returns HSTimer

      A timer object (already started)