Error getting tags :
error 404Error getting tags :
error 404 machine | revDocs | RunRev
Welcome Guest (Log in)
Product Edition
Version
machine
Basics
Expander triangle
Type
Function
Syntax
the machine machine()
Introduced
1.0
Environment
Desktop, Web and Server
Platform Support
MacOS,Mac OS X,Windows,Linux
Security
None required
Summary
Returns the type of hardware the application is running on.
Examples

the machine
if the machine contains "Powerbook" then checkBattery

Additional Comments
Expander triangle

Use the machine function to change what a handler does based on the type of system it's running on.

Value:

The machine function returns a string.

Comments:

On Mac OS systems, the machine function uses the "Gestalt()" system call to determine the machine type.

On Unix systems, the machine function uses the "uname()" system function.

On Windows systems, the machine function always returns "x86".

User Comments
Expander triangle
User thumbnail
(hidden)
StarStarStarStarStar
Mar 31, 2009
The machine function appears to return "unkown" on MacOS plaftorms (tested on Leopard and Tiger - PowerBook and MacPro)