Re: Detecting OS X version from perl

[email protected] (Larry Prall)
Newsgroups perl.macosx
Message-ID <[email protected]>
Try 'system_profiler'.  Running it as 'system_profiler -detaillevel  
full' will probably provide more information than you really need. Run  
it with an unrecognized option (e.g. '-help') for more info.


On Nov 17, 2007, at 7:37 PM, Michael Barto wrote:

>
> 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
>
> <circle.gif>
> LogiQwest Inc.
> 16458 Bolsa Chica Street, # 15
> Huntington Beach, CA  92649
> http://www.logiqwest.com/
>
>    	[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.