开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜