I installed a program yesterday in a mess of terrible installation instructions and I have no idea where it lives. I have files that default to opening that program, but that doesn't tell me where it is. Spotlight Search returns nothing. It doesn't appear to live in the Applications folder. macOS 13.5.2 (22G91) obviously knows where it is, but I can't figure out how to get it to tell me.
Open Terminal and enter
find ~ -name "*xxx*" -print > /tmp/tmp
xxx is the name of the app (as appears in the menu bar when running).
If that doesn’t find it, change
/ and try again.
The redirection to a file is because SIP will flood the Terminal window with error messages, making it hard to find the answer.
Here's a slightly faster invocation of
find than the other answers posted that will only process directories named
*Foo*.app, since a macOS app bundle is always a directory, and always has an
find ~ -type d -iname "*NameOfMysteryApp*.app" 2>/dev/null
If that doesn't return any results, you can expand the search scope to the entire disk by changing
find /(it will take longer to search)
Another possibly useful tool is
mdfind which uses the Spotlight database to instantly return results.
For example, if you know the partial name of the app, try:
mdfind 'kMDItemKind == Application && kMDItemDisplayName == "*Word.app"'
Or, if you know the exact or a partial BundleID, you can try e.g.
mdfind 'kMDItemCFBundleIdentifier == "com.microsoft*"'
Which will output something like:
/Applications/Microsoft Teams (work or school).app
/Applications/Visual Studio Code.app