Re: Command in Macintosh for mapping package name and package id
On Feb 3, 2012, at 5:24 AM, Per Olofsson wrote:
Applescript can be used to retrieve the name of an application using its id:
get name of application id "pkgID"
Interesting, but I'm not having much luck:
MBPro15:Sharepoint pelle$ osascript -e 'get name of application id "com.crashplan.app.pkg"' 4:50: syntax error: Can’t get application id "com.crashplan.app.pkg". (-1728) MBPro15:Sharepoint pelle$ osascript -e 'get name of application id "org.macports.MacPorts"' 4:50: syntax error: Can’t get application id "org.macports.MacPorts". (-1728) MBPro15:Sharepoint pelle$ osascript -e 'get name of application id "com.parallels.pkg.virtualization"' 4:61: syntax error: Can’t get application id "com.parallels.pkg.virtualization". (-1728)
If this works, it is only by chance. There is no requirement that a package id must match the bundle of any application(s) that it contains. The package might also install command line tools or shared libraries without a bundle id, or function solely as a wrapper to run scripts. -- Ben _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Ben Gollmer