Although system attribute sys[v, 1, 2] is not marked as deprecated the underlying C function (Gestalt) is indeed deprecated and even is partial displaying wrong results.
For example the result of this code
tell (system attribute "sysv") to set systemVersionString to (("1" & it mod 4096 div 256) as text) & "." & it mod 256 div 16 & "." & it mod 16
considering numeric strings
set is1011 to AppleScript's version > "2.4"
end considering
No-one is more reluctant than me However, in this case (a) we already have our hands dirty with the Finder, and (b) version is one of the handful of application properties that are actually returned by AppleScript itself, with no involvement from the app, and therefore you you are not really talking to the Finder. You can actually get the version without the app even running.
So in this case you can do it with a clear conscience
Thanks Shane.
In fact, it would be useful if a subset of the string become greater than 9.
For the main value I guess that I will never see AppleScript version 10.1 but maybe we will see version 2.10.
Yvan KOENIG running El Capitan 10.11.1 in French (VALLAURIS, France) mercredi 18 novembre 2015 11:04:08