hammerspoon2-docs
    Preparing search index...

    Function windowsForApp

    • Get windows for a specific application Like allWindows(), this includes windows in native fullscreen and on other Spaces, with the same limitation.

      Parameters

      Returns HSWindow[]

      An array of windows for that application, or an empty array if app is null