MacOS で起動中のアプリの一覧を、ターミナルのCUIで得る方法。
$ osascript -e 'tell application "System Events" to get name of (processes where background only is false)'
# => Finder, Mail, Google Chrome, 1Password, Inkdrop, Preview, Dictionary, iTerm2, Karabiner-Elements, clion, MacVim
参考 : https://stackoverflow.com/questions/7929872/get-list-of-running-apps-on-mac-os-x-in-bash