How can I find/list the (open) applications assigned to all desktops, i.e. which are visible on all spaces?
Background: I have a macro which sends a list of apps to the second display when the second display connects. All of the apps for my second display are all-spaces apps (so that they “stay” when I switch spaces). However, instead of an hand-curated list I have to update myself, I could just do it for all apps which are assigned to all spaces…
I believe you can find all the data you need in ~/Preferences /com.apple.spaces.plist - though with a bit of heavy lifting with AppleScript or other language. The Spaces plist records monitors and desktops using UUIDs rather than app names, but the UUIDs are also stored in a separate section of the plist (i.e., not part of the Monitors section). Make a copy of the plist and put it on the desktop to browse, and you’ll see.
Also the app Total Spaces can be used for this purpose – works on Sierra with a little tweak during installation, described in the app’s support pages.