hammerspoon2-docs
    Preparing search index...

    Function moveToSpaceForID

    • Moves the window with the given ID to another space, without switching to it. This is the same as an HSWindow's moveToSpace(), for windows you only have the ID of, such as those from HSSpace.windowIDs().

      Parameters

      • id: number

        The window's ID

      • space: HSSpace

        The desktop to move the window to

      Returns Promise<void>

      A Promise that resolves once the window is on that space, or