hammerspoon2-docs
    Preparing search index...

    Function addWatcher

    • Create a watcher for application events

      Parameters

      • listener: (event: string, app: HSApplication | null) => void

        A javascript function/lambda to call when any application event is received. The function will be called with two parameters: the name of the event, and the associated HSApplication object

      Returns void