I use several Desktops (Spaces) on macOS. When I need a window that lives on another Desktop, macOS switches me to that Desktop instead of bringing the window to me. That pulls me out of what I’m working on, and I have to switch back manually afterwards.
What macOS does on its own:
– Right-clicking an app’s Dock icon lists its windows, with a ◇ marking minimized ones, and ✓ for open ones. Choosing a window switches to the Desktop it’s on. The app’s Window menu in the menu bar behaves the same way.
– Clicking an app’s Dock icon switches to a Desktop where the app has open windows, if System Settings → Desktop & Dock → “When switching to an application, switch to a Space with open windows for the application” is on.
– Dock icon → Options → Assign To lets me pin an app to All Desktops, This Desktop, or None. This applies to the whole app, not individual windows.
– In Mission Control, I can drag a window onto a Desktop thumbnail at the top of the screen, but that’s a manual, multi-step process.
What I want is for the native Dock window list itself to summon the chosen window onto the Desktop I’m currently on, rather than switching me away.
Is there a way, with built-in features or a small tool or script, to:
1. Modify macOS’s own behavior so that the native Dock window list pulls the selected window (open, minimized, or listed only in the Window menu) to my current Desktop?
The only workaround I have so far is a script that draws a replacement menu over the Dock icon, styled to look like the native list. It works, but it’s still an overlay, not the native menu.
I’m on macOS 27.2.