Apple AppleScript Finder Guide User Manual
Page 120

C H A P T E R 3
Finder Commands
108
Command Definitions
PARAMETERS
gestaltSelector
The Gestalt selector for the feature you want to test. The Finder
converts these constants to the Gestalt codes for the equivalent
information about the operating environment:
CPU
FPU
MMU
hardware
operating system
sound system
memory available
(including virtual memory)
memory installed
For other selectors, use the appropriate code as described
in Inside Macintosh: Operating System Utilities.
Class:
Four-character code recognized by the Gestalt function.
If you use a code instead of one of the constants listed above,
it must have four characters and it must be given either in
the form of a string or within double angle brackets after the
word class:
"
xxxx"
«class
xxxx»
bitsToTest
The value of the bits to test.
Class:
Integer
Default value:
None
RESULT
Integer if the bitsToTest parameter is not included; Boolean if it is.
EXAMPLES
This script returns true if the sound input device bit returned by Gestalt is set,
and false if it isn’t:
tell application "Finder"
set soundInputDevice to 32
computer sound system has soundInputDevice
end tell