Re: detection carbon lib version
Re: detection carbon lib version
- Subject: Re: detection carbon lib version
- From: Christopher Nebel <email@hidden>
- Date: Wed, 15 Aug 2001 15:45:26 -0700
On Wednesday, August 1, 2001, at 08:09 AM, Olivier Destrebecq wrote:
In the Aplescript guidebook, in the essential subroutine part they say
ow to
get the system version and a few other version. The one i'm interested
in is
carbon lib. But i don't now what gestalt code to pass it. Could anyone
tell
me how to get that version. (without going to the extension folder and
looking for the file)
The code you want is "cbon" (i.e., computer "cbon")-- it returns the
version as BCD, so on my Mac OS X system, it returns 320, which is 0x140
(hex), or 1.4.0.
This seems like a good cue to remind folks that I've got reasonably
up-to-date copies of MacErrors.h, Folders.h, and Gestalt.h in my iDisk
public folder, so you can see all the grubby error codes and selectors.
You can get to it via the web, too -- go to
<
http://homepage.mac.com/c.nebel>.
--Chris Nebel
AppleScript Engineering