• 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: AS and Gestalt
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AS and Gestalt


  • Subject: Re: AS and Gestalt
  • From: Jim Baskins <email@hidden>
  • Date: Tue, 26 Dec 2000 10:16:53 -0600

On 12/22/00 4:45 PM, Chris Nebel email@hidden wrote:

> Now that you've got all that, how about an example? Say you want to know how
> fast the Mac is you're running on. Browsing through Gestalt.h, we find that
> there's a selector gestaltProcClkSpeed = FOUR_CHAR_CODE('pclk'). We use the
> four-character code as a string, so in AppleScript, that's:
>
> tell application "Finder"
> computer "pclk"
> end
>
> On my machine, it responds with 500000000, or 500MHz. (Woohoo!) I hope that
> clears things up a bit.

One note, you have to be careful when relying on the output when using this
script on processor upgraded machines, my 7600, originally a 604/132 has
been upgraded to a G3/400, the script above reports 195MHz for the speed (as
does the ASP).

Regards,
Jim Baskins


References: 
 >Re: AS and Gestalt (From: Chris Nebel <email@hidden>)

  • Prev by Date: FileMaker Served Database?
  • Next by Date: Re: How do I change file information?
  • Previous by thread: Re: AS and Gestalt
  • Next by thread: Akua Sweets (was Re: Simple 'screensaver' launcher)
  • Index(es):
    • Date
    • Thread