Skip navigation.
 
mlRe: Application Listing, Similar to System Profiler
FROM : Scott Anguish
DATE : Tue Nov 19 00:16:01 2002

this (Info.plist) wouldn't actually just give you that.. It'd also give
you source code too...  so you'd also need to check the type of
directory they're in as well...

I miss the standard of ~/Applications and such..


On Tuesday, November 19, 2002, at 12:36 AM, Nick Zitzmann wrote:

>
> On Monday, November 18, 2002, at 08:57  PM, Matthew Bigarani wrote:
>

>> Hey everyone, I'm looking to get a list of applications and their
>> version numbers, like Apple's System Profiler does. What would be the
>> best/fastest way to go about this? I thought about wrapping:
>>
>>  find /Applications -name \*.app
>>
>> and getting the info.plist, but that wouldn't cover carbon apps.

>
> Your program will have to search the disk for all files named
> "Info.plist", scan each one to see if the CFBundlePackageType is equal
> to "APPL", and then get the CFBundleShortVersionString if it is equal.
> That will work for all packaged applications, including Mach-O Carbon
> apps, and CFM Carbon apps that are bundled like Mach-O apps (iMovie,
> MSIE, Mozilla, Palm Desktop, Maya, etc.).



Related mailsAuthorDate
mlApplication Listing, Similar to System Profiler Matthew Bigarani Nov 18, 20:58
mlRe: Application Listing, Similar to System Profiler Nick Zitzmann Nov 18, 21:37
mlRe: Application Listing, Similar to System Profiler Finlay Dobbie Nov 18, 23:45
mlRe: Application Listing, Similar to System Profiler Scott Anguish Nov 19, 00:16