WINDOWCOUNT() but just for the current space?

Hi, @alexcr. This can be done with AppleScript. The macro below includes two options, one that counts all Finder windows in the Mission Control Desktop Space and one that counts all except those that are minimized.

Download: Count Finder Windows in Desktop Space.kmmacros (4.7 KB)

Macro-Image


Macro-Notes
  • Macros are always disabled when imported into the Keyboard Maestro Editor.
    • The user must ensure the macro is enabled.
    • The user must also ensure the macro's parent macro-group is enabled.

System Information
  • macOS 13.4.1 (22F82)
  • Keyboard Maestro v10.2

2 Likes