You can do something like this to find a single app by Bundle ID with AppleScriptObjC:
use framework "Foundation" use scripting additions set appBundleID to "com.barebones.bbedit" set nsWS to current application's NSWorkspace's sharedWorkspace() set appURL to nsWS's URLForApplicationWithBundleIdentifier:appBundleID
Is there a neat trick to finding ALL apps on a startup-disk that have that Bundle ID?
I 'spect I can make do with Spotlight if necessary.
mdfind -onlyin / 'kMDItemCFBundleIdentifier == "com.barebones.bbedit"'