Re: AS and Gestalt
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