Browse the docs

screenCount

Returns the number of connected screens.

Keyboard Maestro: SCREENCOUNT

Details #

screenCount() takes no arguments and returns a whole number: how many displays the Mac has attached. The main display counts as one.

Parameters #

Takes 0 arguments. {{ screenCount() }}

Examples #

screenCount()
→ 0
screenCount() > 1
→ false

Gotchas #

  • Calling it with an argument is an error: screenCount() takes 0 arguments, got 1.

  • With nothing real to read (a test run, a fake system) the answer is 0.