views:

132

answers:

1

Hi, Could you tell me plz - how to catch system information like os version, installed apps versions, hardware details using macruby or ruby cocoa?

A: 

You might be able to find what you need with NSProcessInfo:

>> NSProcessInfo.processInfo.operatingSystemVersionString
=> "Version 10.6.2 (Build 10C540)"
>> NSProcessInfo.processInfo.processorCount
=> 2
>> NSProcessInfo.processInfo.physicalMemory
=> 4294967296

Check out the Mac Dev Center for more.

csexton
ok, but how to catch information about installed apps with versions?
Alexey Poimtsev