Open extempl opened 8 years ago
+1
+1
I'm not sure if this is even directly possible, as it appears UTIs and bundle IDs are the way to (indirectly) go?
Perhaps this one-liner can be of value to someone looking for the same as I did:
function app2bundleid { readonly local PLIST="${1}/Contents/Info.plist"; [ -e $1 ] && /usr/libexec/PlistBuddy -c 'print ":CFBundleIdentifier"' ${PLIST} || echo file not found. }
(for readability:)
function app2bundleid {
readonly local PLIST="${1}/Contents/Info.plist"
[ -e $1 ] && /usr/libexec/PlistBuddy -c 'print ":CFBundleIdentifier"' ${PLIST} || echo file not found.
}
I need this in terms of creating some proxy file which should parse provided string and open some application with correct data.