Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I discover what apps are installed on OS X using Objective C or Macruby?

could you tell me please - which object and which method can i use to fetch information about installed applications on OSX with objective c or macruby?

like image 571
Alexey Poimtsev Avatar asked May 04 '10 12:05

Alexey Poimtsev


1 Answers

You can just call the Apple command-line tool system_profiler, e.g.

% system_profiler SPApplicationsDataType

For C or Objective-C you could use system() to do this.

For more info:

% man system

% man system_profiler

like image 195
Paul R Avatar answered Nov 15 '22 08:11

Paul R