Created
May 15, 2012 07:29
-
-
Save hezi/2699753 to your computer and use it in GitHub Desktop.
Open in finder the directory of an app running in simulator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage: add to your .bashrc / .zshrc / whatever | |
# run like this - appdir <appname> | |
appdir() { | |
ps ax | grep $1.app | grep -v grep | awk '{print "\""$5" "$6" "$7"\""} ' | sed "s/$1\.app\/$1//g" | xargs open | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is probably the least efficient way to do this, but it works.