Re: Detecting OS X version from perl

[email protected] (Michael Barto)
Newsgroups perl.macosx
Organization LogiQwest
Message-ID <[email protected]>
Just a quick question. Is there a command line at a terminal window of 
MacOSX that can do this- tell you more about the hardware? Also list 
software packages and their revisions and also patches?

Peter Hartmann wrote:
> 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]
>
>

-- 
------------------------------------------------------------------------
*Michael Barto*
Software Architect

	LogiQwest Circle
LogiQwest Inc.
16458 Bolsa Chica Street, # 15
Huntington Beach, CA  92649
http://www.logiqwest.com/

	    	[email protected] <mailto:[email protected]>
Tel:  714 377 3705
Fax: 714 840 3937
Cell: 714 883 1949

*'tis a gift to be simple*
------------------------------------------------------------------------
This e-mail may contain LogiQwest proprietary information and should be 
treated as confidential.
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.