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.
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 postscom.apple.Music.playerInfowhenever its player changes state, with details such asPlayer State,NameandArtistin the notification'suserInfo.Notifications are delivered as soon as they're posted, even while Hammerspoon 2 is in the background.