The names Mission Control shows for each space, such as "Desktop 2" or "Safari". This opens Mission Control briefly to read them, and needs Accessibility permission. For a desktop's number without opening Mission Control, use HSSpace.desktopNumber.
HSSpace.desktopNumber
A Promise that resolves to an object mapping
The names Mission Control shows for each space, such as "Desktop 2" or "Safari". This opens Mission Control briefly to read them, and needs Accessibility permission. For a desktop's number without opening Mission Control, use
HSSpace.desktopNumber.