Command reference
ed windows ls
ed windows ls [--app TEXT] [--json]Lists every window the switcher would show, most recently used first, then in front-to-back order. Each row has the window id, app, title and whether it is minimised, hidden or on another Space. --app keeps windows of apps whose name contains the text. The include settings and excluded apps apply. JSON output is an array of objects with id, windowNumber, processID, bundleID, app, title, minimized, hidden, otherSpace and position.