What is the reliable way to locate the file Info.plist for any given .app program? Likely most apps have it in MyApp.app/Contents/Info.plist
, however other third party apps store it on another subfolder location, or even have several of them in different subfolders.
Is there any parameter which can do this which never fails, like defaults read MyApp.app Info.plist
? (this is an example, does not work).
There must be one, because when I launch the application.app from Finder it always launches, so MacOS must know where Info.plist is located and how to read it.
I would like to retrieve such information from Terminal, however.
I'm planning in reading where the main binary is for the application … so I can launch the app from Terminal
Most folks run apps from Terminal using the open
command line tool. Does that work for you?
See the open
man page for more details.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"