Save and Restore Window Layouts Across Multiple Spaces

I noticed this feature mentioned in the release notes:

Window layouts across Spaces: Enable "Include All Spaces" in the "Save current window layout" action or in the layout editor to capture and restore the windows on all your desktops.

Does this mean I can save my current window layout, including window positions and sizes across multiple macOS Spaces, and later restore everything exactly as it was?

For example, if I have several apps arranged across three different Spaces, can I save that setup and restore all windows to their original positions, sizes, and Spaces with a single shortcut?

If so, that's exactly the feature I've been looking for!

@Andreas_Hegenberg ?

In theory yes, but the API's macOS offers for this are very limited. You will need to check whether it is good enough for your usecase.

That's a bummer of a limitation. If we exclude Spaces, can BTT currently handle the window management features I mentioned?

yes (but it can not restore closed windows, it can only optionally launch the apps they belonged to)

One workaround that might help while the Spaces support is limited: rather than one layout that captures every Space, save a separate layout for each Space, then build a sequence that switches to a Space, waits a moment, and restores that Space's layout before moving on to the next one. That way BTT only has to place windows on the Space you're currently on, which seems to be the part macOS handles reliably.

And since it can't reopen closed windows, if the apps aren't running yet it's worth turning on the option to launch them and adding a short delay before the restore so the windows exist by the time it runs. I haven't tested this with the new "Include All Spaces" option, so I'd be curious whether anyone gets better results with that.

@Novastart yes, this is basically what the option is doing