Daniel
Daniel

Reputation: 25

Get list of running applications (translate from Applescript?)

I want to monitor what applications are running. It's simple enough in AppleScript, but I can't find any useful information about how to do the same thing in Objective-C.

on run
tell application "System Events" to get name of every process
end run

Upvotes: 2

Views: 1888

Answers (1)

Abizern
Abizern

Reputation: 150575

Your first port of call is the NSWorkspace documentation. In particular the runningApplications method.

Upvotes: 5

Related Questions