How to get the version number of an App?

You can do this also with a Shell command.

Examples in Terminal follow.

This lists all installed versions for a bundle id, along with their paths:

mdfind "kMDItemCFBundleIdentifier == com.irradiatedsoftware.iClip" | while IFS= read -r path ; do echo "$path"; mdls -name kMDItemVersion "$path"; done

This gets the version of a particular app:

mdls -name kMDItemVersion /Applications/iClip.app

Beware: Both only works if Spotlight indexing is enabled on the app, though. So, it’s useful to get optional infos, e.g. for debugging and support, but an app should not rely on this, because some users turn off Spotlight.

1 Like