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
Your first port of call is the NSWorkspace documentation. In particular the runningApplications
method.
精彩评论