views:

74

answers:

2

Is there a way to find out what all softwares are installed / present in OS x, programmatically using objective C. any help will be appreciated. Thanks in advance

A: 

-findApplications method of NSWorkspace class is what you are looking for. This method is deprecated in Mac OS X 10.6.

You may also want to look at Launch Services.

mouviciel
I could not make it work.
Unicorn
+3  A: 
system_profiler -xml SPSoftwareDataType

system_profiler -xml SPApplicationsDataType
Ned Deily
SPApplicationsDataType works for me, but strange i didn't see this when i did -listDataTypes. Are there more options hidden ??
Unicorn
I see it in -listDataTypes on both 10.5 and 10.6. The data types aren't in alphabetical order.
Ned Deily
Yep got it.Thanks, so if i just execute system_profiler with out any command, its suppose to list entire information including what it shows when we do system_profiler SPApplicationsDataType
Unicorn