获取Bash在Mac OS X上正在运行的应用程序的列表? [英] Get list of running Apps on Mac OS X in Bash?

查看:143
本文介绍了获取Bash在Mac OS X上正在运行的应用程序的列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Bash获取正在运行的应用程序列表?

Is it possible to get the list of running Apps using Bash?

我不是在谈论流程,而是Dock中的应用程序(以及菜单栏中的应用程序也很好).

I'm not talking about processes, but the apps in the Dock (and also the ones in the menubar would be nice).

推荐答案

osascript -e 'tell application "System Events" to get name of (processes where background only is false)'

这篇关于获取Bash在Mac OS X上正在运行的应用程序的列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆