systemVersion
Returns the macOS version as major.minor, such as 15.1.
Keyboard Maestro: SystemVersion
Details #
systemVersion() takes no arguments and returns text in the form major.minor, such as 15.1. There is no patch number; use systemLongVersion for that.
Parameters #
Takes 0 arguments.
{{ systemVersion() }}
Examples #
systemVersion()→
split(systemVersion(), ".")[0]→
Gotchas #
Calling it with an argument is an error:
systemVersion() takes 0 arguments, got 1.It is text.
15.10and15.1are different versions, so don't compare it as a number.