I’m trying to first find and get the path of an app then use the app’s path to get to the Info.plist and get the version info. Using the following:
set appPath to (path to application id "ttxt") as text
set appInfoPlistPath to appPath & "Contents:Info.plist"
tell application "System Events" to set versionNumber to the value of property list item "CFBundleShortVersionString" of contents of property list file appInfoPlistPath
works, but it launches the application. Can the path to the app be gotten without the app launching? I was hoping to avoid using mdfind as it can take some time to sift through the spotlight db.
Thanks