Re: Command in Macintosh for mapping package name and package id
Re: Command in Macintosh for mapping package name and package id
- Subject: Re: Command in Macintosh for mapping package name and package id
- From: Ben Gollmer <email@hidden>
- Date: Sat, 04 Feb 2012 21:04:53 -0500
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden