Skip navigation.
 
mlRe: Application Listing, Similar to System Profiler
FROM : Nick Zitzmann
DATE : Mon Nov 18 21:37:01 2002

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.).

For unbundled CFM Carbon or Classic applications, you need to check
their HFS type codes for "APPL", make sure the app's parent directory
is not titled "MacOSClassic", then use Carbon to check their "vers"
resource to get the version number.

Nick Zitzmann
AIM/iChat: dragonsdontsleep
Check out my software page: http://dreamless.home.attbi.com/

"La la la! I sing, too! For food, for food! La la la!" - Gabo, Dragon
Warrior VII


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