hammerspoon2-docs
    Preparing search index...
    • Listen for the next posting of a distributed notification only.

      Parameters

      • name: string

        The name of the notification to listen for

      • listener: (object: string | null, userInfo: Record<string, any>) => void

        Called once, then automatically removed

      Returns void

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