In macOS, one of the options to open an application via "open" command would be like so:
$ open -a "Google Chrome"
$ open -a "GIMP"
But I realized that the command above works even if the apps weren't in /Applications
nor ~/Applications
directory.
So, "how can I get the path of this app" using a command line?
I tried to use the find
command and search the whole machine, but I thought that there would be an easier way to find it.
The reason is that I need to access the bin file inside the ".app" directory like below:
$ /path/to/GIMP.app/Contents/MacOS/GIMP-bin --help-all
Since the command below doesn't seem to parse the arguments.
$ open -a "GIMP" --args --help-all
- macOS HighSierra (OSX 10.13.5)