And, now that I try it, it also looks inaccurate:

    % sw_vers | grep 'ProductVersion' | awk '{print $2}'
    10.2.4
    % osascript -e 'tell application "Finder" to version'
    10.2.1

Not inaccurate as such. The latter returns the Finder application version. Presumably the former returns the system version.


The Finder version and system version are sometimes in sync but not others. In fact, system 7.0 was the first ever system to ship with the Finder and System synced to the same version, before that they had always been different and there is no requirement for them to be the same.

For example:
% osascript -e 'tell application "BBEdit" to version'
7.0.2

Sounds like the Finder application has not been updated in the last three minor system updates.

You can get the system version like this:

% osascript -e 'tell application "Finder" to get system attribute "sysv"'
4132

4132 decimal is 0x1024 (10.2.4)

You can also do this using as shown in Chris Nandor's page at:

http://pudge.net/macperl/yapc/2002/scripts/gestalt

Enjoy,
   Peter.

--
<http://www.interarchy.com/>  <http://download.interarchy.com/>

Reply via email to