How do I see the location path of an application?
Navigate to your Applications folder, right click on any app, choose Show Package Contents and navigate to Contents/MacOS/. Most of the times, the binary is named after the app so, if using the path on a script, you'll be mostly safe by using /Applications/(appname).app/Contents/MacOS/(appname), where (appname) is, well, the name of the app. If the app name has a whitespace in it, eg. Sublime Text, don't forget to put the path between double quotes (or escape it), in your script.