• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: detection carbon lib version
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >detection carbon lib version (From: Olivier Destrebecq <email@hidden>)

  • Prev by Date: Re: Dismissing dialog box
  • Next by Date: Folder Actions - The Jon Pugh Challenge
  • Previous by thread: detection carbon lib version
  • Next by thread: Re: how to return to app ?
  • Index(es):
    • Date
    • Thread