Here is the Swift version of my application, which lets you easily retrieve the Bundle ID of a macOS app via simple drag and drop. It works on macOS 11 (Big Sur) and later.
https://www.dropbox.com/scl/fi/cywmj34pkyezkj64ofos2/Bundle_ID.zip?rlkey=vd7dc3z6gj43f5s1o2hgonoaw&st=nwqqbe6q&dl=0
This is the equivalent of the AppleScript version shared earlier.
Since the app is not signed by Apple, here are three quick ways to open it:
I assume most of you already know how, but just in case:
From Finder
Right-click on the app → Select “Open” → Accept the security warning prompt
From Terminal
codesign --force --deep --sign - /path/to/yourApp.app
xattr -d com.apple.quarantine /path/to/yourApp.app
From Sentinel (drag and drop)
Simply drag your app into the Sentinel window