hammerspoon2-docs
    Preparing search index...

    Function on

    • Register a listener for window filter module events.

      "inaccessibleApplication" fires when an application is found to have turned the Accessibility API off for itself (e.g. Firefox in kiosk mode), so no window filter can see its windows. It fires once per launch of such an application, for applications found after the listener is registered; hs.windowfilter.inaccessibleApplications() lists the ones already known.

      Parameters

      • event: "inaccessibleApplication"

        The event to listen for

      • listener: (app: HSApplication) => void

        Called with the application

      Returns void

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