Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get list of running Apps on Mac OS X in Bash? [closed]

Tags:

bash

macos

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

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

like image 808
Tyilo Avatar asked Oct 28 '11 13:10

Tyilo


People also ask

How do I list running processes in Mac terminal?

Launch Terminal (Finder > Applications > Utilities). When Terminal is running, type top and hit Return. This will pull up a list of all your currently running processes. As in the Activity Monitor, this list shows your processes in decreasing order of how much of your resources they're consuming.

How do I see all Applications running on my Mac?

Press Cmd + Alt + Escape to see the Force Quit Applications menu. This shows all running apps, and lets you force-quit them if necessary – just highlight the app and click Force Quit. It's not possible to jump to open apps from this menu, only to close them.

How do I see background processes on Mac?

In the Activity Monitor app on your Mac, in the View menu, choose one of the following: All Processes: Shows all the processes running on your Mac. All Processes, Hierarchically: Shows processes that belong to other processes, so you can see the parent/child relationship between them.


1 Answers

osascript -e 'tell application "System Events" to get name of (processes where background only is false)'
like image 71
rob mayoff Avatar answered Oct 14 '22 21:10

rob mayoff