I want to test whether Foo.app exists before I call:
$ open -a Foo.app bar
What search path does open use to look for Foo.app? I know it must include /Applications, which means it’s not $PATH.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’d search it using
mdfindand then use the obtained path (if any) to open it: