Browse the docs

processors

Returns the number of active processor cores in the Mac.

Keyboard Maestro: PROCESSORS

Details #

processors() takes no arguments and returns a whole number: the count of active processor cores the system reports. On Apple silicon that includes both performance and efficiency cores.

Parameters #

Takes 0 arguments. {{ processors() }}

Examples #

processors()
→ 8
processors() >= 1
→ true

Gotchas #

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

  • It reads the machine directly, so it works the same in tests.