ReadonlyapplicationThe application that owns this window
The window's frame {x: Int, y: Int, w: Int, h: Int}
ReadonlyidThe window's underlying ID. A value of 0 or -1 likely means no window ID could be determined.
ReadonlyisWhether the window is focused
Whether the window is fullscreen
Whether the window is minimized
ReadonlyisWhether the window is standard (has a titlebar)
ReadonlyisWhether the window is visible (not minimized or hidden)
ReadonlypidThe process ID of the application that owns this window
The window's position on screen {x: Int, y: Int}
ReadonlyscreenThe screen that contains the largest portion of this window.
The window's size {w: Int, h: Int}
ReadonlytitleThe window's title
Center the window on the screen
Close this window
true if successful
Focus this window
true if successful
Minimize this window
true if successful
Raise this window to the front
true if successful
Toggle fullscreen mode
true if successful
Unminimize this window
true if successful
Object representing a window. You should not instantiate these directly, but rather, use the methods in hs.window to create them for you. Note that this type uses private macOS APIs