hammerspoon2-docs
    Preparing search index...

    Function spacesForID

    • The spaces the window with the given ID is on. This is the same as an HSWindow's spaces, for windows you only have the ID of, such as those from HSSpace.windowIDs() (Hammerspoon can't make HSWindow objects for windows on other spaces).

      Parameters

      • id: number

        The window's ID

      Returns HSSpace[]

      An array of HSSpace objects, empty if there's no such window