hammerspoon2-docs
    Preparing search index...

    Namespace distributednotifications

    Module for receiving and posting macOS distributed notifications.

    Distributed notifications are broadcast between processes through NSDistributedNotificationCenter. Many applications announce their changes this way: for example, Music posts com.apple.Music.playerInfo whenever its player changes state, with details such as Player State, Name and Artist in the notification's userInfo.

    Notifications are delivered as soon as they're posted, even while Hammerspoon 2 is in the background.

    off
    on
    once
    post