Is there a way to retrieve a list of applications running per Space/Desktop in macOS Big Sur (11.4)? Ideally, I'd like to save the state of apps running in a chosen space and be able to reopen them later in a single space.
Is it possible (using AppleScript or Xcode)? Where to look for Spaces-related data? Any advice is highly appreciated.