Re: [MacRuby-devel] Computer Serial Number

2011-04-06 Thread Robert Rice
Thanks for the help. The shell script is working for me. Bob Rice On Apr 5, 2011, at 5:43 PM, Terry Moore wrote: > > > There is no BridgeSupport for IOkit... so ruby is out for now. > > like Henry said you can escape to a shell.. or wrap this snippet in an objc > class... > > Quote form Mac

Re: [MacRuby-devel] Computer Serial Number

2011-04-05 Thread Terry Moore
There is no BridgeSupport for IOkit... so ruby is out for now. like Henry said you can escape to a shell.. or wrap this snippet in an objc class... #include #include // Returns the serial number as a CFString. // It is the caller's responsibility to release the returned CFString when done

Re: [MacRuby-devel] Computer Serial Number

2011-04-05 Thread Henry Maddocks
On 6/04/2011, at 9:10 AM, Robert Rice wrote: > Hi Gang: > > Could anyone help me to read the computer's serial number from a MacRuby > program. Since I don't know Objective C, I haven't been able to figure out > how to access it. system_profile = `system_profiler SPHardwareDataType` serial_nu