hammerspoon2-docs
    Preparing search index...

    Function once

    • Register a listener that fires at most once for AX events on a specific element

      Parameters

      • element: HSAXElement

        An HSAXElement to watch - see on for the application-vs-descendant bubbling behavior

      • notification: string | string[]

        An event name, or an array of event names, to watch for with the same listener

      • listener: (notification: string, element: HSAXElement) => void

        Called once (per registered notification name), then automatically removed

      Returns void