Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

akhilgupta

macrumors newbie
Original poster
Jun 22, 2011
1
0
hi everyone,
currently i m working with NSTask. And i want to execute "system_profiler -xml SPApplicationDataType" command in Terminal Application. Now i m able to execute Terminal application.But i m getting stuck at the point that...How i can write command on terminal window..

Thanks for any Reply

akhil
 

chown33

Moderator
Staff member
Aug 9, 2009
10,751
8,423
A sea of green
The first problem is that the command is wrong. You've misspelled part of it.

You gave this:
Code:
system_profiler -xml SPApplicationDataType
It should be this:
Code:
system_profiler -xml SPApplicationsDataType
The word Applications must end with an "s".

Manually enter this command in Terminal:
Code:
system_profiler -listDataTypes
then copy and paste the listed data type you want.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.