move all windows in a desktop to different space

I’m trying to make an action where all the windows in one desktop move to another. I see the “Move window to desktop X” but that only does one at a time. Is there a way to do all the windows in desktop Y at once?

If my specific use case is relevant: My primary work setup is with my external monitor as my primary work space (mostly in Chrome), with gchat(web)/slack/email on my mbp next to it. but i sometimes work from a coffee shop or wherever. In the latter situation, I’d like to move the windows in my main work screen to a separate desktop from my “chat” window to keep things organized.

I also tried achieving this with the “restore window layout” action but it’s understandably struggling to tell the difference between different chrome windows, since the exact pages I have open changes constantly.

I saw this post from 2023 but looks like it’s kind of fallen off.

unfortunately no. The APIs for moving windows between spaces have all been locked down since macOS 15 ;-( (only Apple can use them unless you disable System Integrity Protection - which I'd never recommend but if you want to do that have a look at Yabai GitHub - koekeishiya/yabai: A tiling window manager for macOS based on binary space partitioning )

1 Like

Rats. Thanks for the heads up though!