The Computer Oracle

`open -a` results in an "Unable to find application" error on OS X

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 5 Looping

--

Chapters
00:00 `Open -A` Results In An &Quot;Unable To Find Application&Quot; Error On Os X
00:48 Accepted Answer Score 8
01:18 Answer 2 Score 0
01:36 Thank you

--

Full question
https://superuser.com/questions/367110/o...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #terminal

#avk47



ACCEPTED ANSWER

Score 8


Have you considered the following?

open -a Numbers

Applications opened by open aren't opened relative to their path, but just according to their actual name, as identified in Contents/Info.plist in the .app file itself.

If you want to be sure, you can also use the Bundle Identifier with the -b option:

open -b com.apple.iTunes

Which can be found in the Info.plist file too:

enter image description here




ANSWER 2

Score 0


Have you tried, alias num='/Applications/iWork '09/Numbers.app/' ? It works for me. Add this to your ./bashrc and source it. Then you can just execute it by typing num Using absolute path every time can be tedious.