PURPOSE
This subroutine returns version information for Keyboard Maestro and macOS.
PARAMETER
local__ReturnContents
If one of the following integers is specified, a single line of text is returned that includes the value indicated.
1 : Keyboard Maestro KeyboardMaestroVersion, e.g., Keyboard Maestro 11.0.2
2 : KeyboardMaestroVersionFloat, e.g., 11.02
4 : macOS productName productVersion (buildVersion), e.g., macOS Sonoma 14.2.1 (23C71)
8 : productName, e.g., Sonoma
16 : productVersion, e.g., 14.2.1
32 : buildVersion, e.g., 23C71
64 : productVersionFloat, e.g., 14.21
Multiple lines of text can be returned by specifying an integer that is the sum of two or more of the above integers. For example, if 5 (1+4) is specified, the following will be returned:
Keyboard Maestro KeyboardMaestroVersion
macOS productName productVersion (buildVersion)
For example,
Keyboard Maestro 11.0.2
macOS Sonoma 14.2.1 (23C71)
If 127 is specified, all seven lines will be returned. For example:
Keyboard Maestro 11.0.2
11.02
macOS Sonoma 14.2.1 (23C71)
Sonoma
14.2.1
23C71
14.21
TESTED WITH
• Keyboard Maestro 11.0.2
• Sonoma 14.2.1 (23C71)/MacBookPro18,2
• Sonoma 14.2.1 (23C71)/VariableMacBookPro16,1
• Mojave 10.14.16/Macmini6,2
• High Sierra 10.13.6/iMac11,1445
VERSION HISTORY
1.0 initial version
Download: 𝗌.𝘂⇾PlatformVersions.kmmacros (49 KB)
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 14.2.1 (23C71)
- Keyboard Maestro v11.0.2
Download: CALL 𝗌.𝘂⇾PlatformVersions.kmmacros (17 KB)
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 14.2.1 (23C71)
- Keyboard Maestro v11.0.2