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
2009-11-10 09:04:16
I could not make it work.
Unicorn
2009-11-10 11:12:49
+3
A:
system_profiler -xml SPSoftwareDataType
system_profiler -xml SPApplicationsDataType
Ned Deily
2009-11-10 09:05:09
SPApplicationsDataType works for me, but strange i didn't see this when i did -listDataTypes. Are there more options hidden ??
Unicorn
2009-11-10 09:16:06
I see it in -listDataTypes on both 10.5 and 10.6. The data types aren't in alphabetical order.
Ned Deily
2009-11-10 09:30:32
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
2009-11-10 09:45:40