Re: Detecting OS X version from perl

[email protected] (Peter Hartmann)
Newsgroups perl.macosx
Message-ID <[email protected]>
On my 800Mhz Dual Processor PPC the AS command

system info

returns the correct version (10.4.11).

Am 17.11.2007 um 12:21 schrieb Eberhard Lisse:

> Very Cool,
>
> on my iMini
>
> Gestalt says it's 10.4.9
> osascript/fider says 10.4.7

I guess this is the version for the application "Finder", not the OS!

> sw_version 10.4.11
>
> the latter is correct :-)-O


This AS

tell application "Finder"
	set FinderVersion to version
	set OSVersion to product version
	return {FinderVersion, OSVersion}
end tell

returns

{"10.4.7", ""}

So getting the OS version via the Finder seems to be broken - but  
there is an alternative, as shown above.

Gestalt seems to be broken, however.

___ Peter Hartmann ________

mailto:[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.