Kronzky
If the script contains a command that was introduced after the required version, it will still generate a syntax error, even if this test is done at the top of the script (as the whole script is parsed before execution).
Results appear below as you type; use the arrow keys to move through them.
Command · Markdown · JSON · original wiki page
Check if version of application is available. If the current version is older than the required one, a warning message is shown and false is returned.
Version of format Major.Minor, e.g. 1.30
requiredVersion version
Parameters:
version: StringReturns: Boolean
if !(requiredVersion "1.09") exitWith {};
If the script contains a command that was introduced after the required version, it will still generate a syntax error, even if this test is done at the top of the script (as the whole script is parsed before execution).