Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Feb 7, 2009, 07:40 AM   #1
jashsayani
macrumors regular
 
Join Date: Feb 2009
Location: San Jose, CA
Fetching system information

I want to make a simple Cocoa app that displays system information like Serial No, HD space, IP Address, OS Info, etc.

How do I fetch the info and display it in the app ?
__________________
Mac mini: 2.0 GHz, 2 GB RAM, 160 GB HD, Leopard 10.5.8
MacBook Pro: 2.9 GHz, 8 GB RAM, 256 GB SSD, Mavericks 10.9.1
Visit my Blog Twitter: Follow Me
jashsayani is offline   0 Reply With Quote
Old Feb 7, 2009, 07:53 PM   #2
bascov
macrumors newbie
 
Join Date: Feb 2009
Location: USA
something like:
set sysInfo to do shell script "system_profiler SPHardwareDataType"
display dialog sysInfo
bascov is offline   0 Reply With Quote
Old Feb 9, 2009, 02:47 AM   #3
jashsayani
Thread Starter
macrumors regular
 
Join Date: Feb 2009
Location: San Jose, CA
Thanks a lot for the reply.

When I type this in the terminal, I get the basic info:
Code:
system_profiler SPHardwareDataType
Now, how do I separately display Memory, Serial No., Cache, etc.
Explanation with 2 lines of code (getting info and displaying) would be great as I'm new to Cocoa programming.

Thanks.
__________________
Mac mini: 2.0 GHz, 2 GB RAM, 160 GB HD, Leopard 10.5.8
MacBook Pro: 2.9 GHz, 8 GB RAM, 256 GB SSD, Mavericks 10.9.1
Visit my Blog Twitter: Follow Me
jashsayani is offline   0 Reply With Quote
Old Feb 9, 2009, 01:28 PM   #4
Mac_Max
macrumors 6502
 
Join Date: Mar 2004
typing "man system_profiler" will give you the commands you need to extract the data you want.
Mac_Max is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
System Information App Problem Fischer71 MacBook Pro 2 Dec 5, 2013 12:23 PM
Thunderbolt SSD only shows in System Information stevenknight Mac Peripherals 1 Jun 30, 2013 07:22 AM
System Information Updated To 5.2! pearapps iPhone and iPod touch Apps 0 May 25, 2013 06:59 AM
System information storage not correct? idkz MacBook Pro 8 Apr 3, 2013 01:29 PM
Display RAM in System Information app ob2code Mac Pro 3 Nov 12, 2012 07:42 AM

Forum Jump

All times are GMT -5. The time now is 01:49 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC