Previous Book Contents Book Index Next

Inside Macintosh: AppleScript Language Guide / Part 2 - AppleScript Language Reference
Chapter 3 - Values / Value Class Definitions


Class

A value of class Class is a class identifier. A class identifier is a reserved word that specifies the class to which an object or value belongs. The Class property of an object contains a class identifier value.

LITERAL EXPRESSIONS
string
integer
real
boolean
class
PROPERTY
Class
The class identifier for the object. This property is read-only, and its value is always class.
ELEMENTS
None

OPERATORS
The operators that take class identifier values as operands are &, =, , and As.

The operator As takes a value of one class and coerces it to a value of a class specified by a class identifier. For example,

"1.5" as real
coerces a string into the corresponding real number, 1.5. For more information about coercing values, see Chapter 6, "Expressions."

COERCIONS SUPPORTED
AppleScript supports coercion of a class identifier to a single-item list.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 JUL 1996