I have an app name foo.app I want to open from command line (using open).
My folder structure is like this:
~
+---bar
+--- foo.app
+---baz
+--- foo.app
I want to open the app located in the bar folder, however if I do open -a foo.app, the app located in the baz folder will open, even if my current working directory is in the bar folder.
open -a ./foo.app or open -a ~/bar/foo.app doesn't work either.