Skip to content

Instantly share code, notes, and snippets.

@laiso
Created November 27, 2012 08:57
Show Gist options
  • Save laiso/4153232 to your computer and use it in GitHub Desktop.
Save laiso/4153232 to your computer and use it in GitHub Desktop.
[OS X]起動中のアプリケーション一覧を出力するシェルスクリプト
#! /bin/sh
# appps.bash --user
# appps.bash --system
# appps.bash --all
#
# curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.bash" | bash -
# curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.bash" | bash - | pbcopy -
C="$1" || "--all"
RE=''
case $C in
"--user" )
RE='.*\/Applications\/\([^/]*\)\.app\/.*'
;;
"--system" )
RE='.*\/Library\/\([^/]*\)\.app\/.*'
;;
"--all" )
RE='.*\/\([^/]*\)\.app\/.*'
;;
* )
RE='.*\/\([^/]*\)\.app\/.*'
;;
esac
ps ax -o command | sed -ne "s/${RE}/\1/p" | sort -u
curl "https://raw.github.com/gist/4153232/dcf91809574d0b70cfee1349227f2ff0718de231/appps.sh" | bash -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 112 100 112 0 0 72 0 0:00:01 0:00:01 --:--:-- 139
Adobe Crash Reporter.app
Adobe Flash CS6.app
AirPort Base Station Agent.app
CS6ServiceManager.app
DashboardClient.app
Dock.app
Dropbox.app
Finder.app
FlagUp Notifier.app
Google Chrome Helper EH.app
Google Chrome Helper.app
Google Chrome.app
Google Drive.app
Hiss.app
Image Capture Extension.app
KeyRemap4MacBook.app
LCCDaemon.app
MacUIM.app
MacVim.app
Menubar Countdown.app
NotificationCenter.app
PCKeyboardHack.app
PTPCamera.app
Producteev.app
QuickLookUIHelper.app
Skype.app
SystemUIServer.app
TISwitcher.app
WebStorm.app
check_afp.app
iTerm.app
imagent.app
loginwindow.app
quicklookd.app
witchdaemon.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment