Command reference
ed windows
ed windows is the command-line surface for the Window Switcher page under Mac Utilities. It lists every window the switcher can reach in the order you last used them, shows the recently used ones, and brings one to the front by id.
| Command | What it does |
|---|---|
ed windows ls |
Lists windows, most recently used first. |
ed windows recent |
Shows the windows you used most recently. |
ed windows focus |
Brings one window to the front. |
Window titles and focusing need Accessibility. Window order comes from app activation and window focus notifications; nothing is polled. Ids look like w1234 for windows macOS numbers and a<pid>-<index> for the few it does not.