Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
Note: expression
must yield a valid setting for the specified property.
The set
command changes the state of a specified property. If the object or element to which the property belongs is not specified, the property must be a global property or painting property.
You can use the Info dialog box of an object to set many of its properties.
HyperTalk Definition
A literal string that names a characteristic of an object (for example, a field or button property) or of HyperCard itself (called a global property).
Properties vary depending on the object and include
AppleScript Definition
A characteristic of an object that has a single value and is identified by a label.
HyperTalk Definition
Any HyperTalk expression. All expressions evaluate to text, a number, or a constant.
For example:
Note: Formally, HyperCard distinguishes between factors (simple values) and expressions. The difference between factors and expressions matters only if you like to drop parentheses. Most functions take factors as their parameters, which is why length of 3 + 5
returns 6
and length of (3 + 5)
returns 1
. In short, always use parentheses to group things the way you want them to evaluate, and you won’t have to worry about the difference between factors and expressions.
AppleScript Definition
Any series of words that has a value.
HyperTalk Definition
The object HyperCard
, or any expression that identifies an object by name, number, or id.
For example:
AppleScript Definition
An identifiable part of an application, or a thing within an application that can respond to commands.
One of HyperCard’s built-in windows, the window containing the current stack (called the card window), or any other window containing a stack, as follows:
Note: If a window containing a stack is inactive, you can set only its location
and visible
properties.
Important: External windows can’t be substituted for the window
placeholder (see the externalWindow
placeHolder).
An expression that evaluates to one of the following:
For example:
An expression that evaluates to one of the following:
For example:
One of the following forms (or combinations thereof):
For example:
A chunk combined with of
and a container is called a chunk expression. For example: line 1 of card field "index"
Important: You can’t combine a stack name with a chunk expression—you can only refer to a chunk in the current stack.
An expression that identifies a field by name, number, or id using one of the following forms (in AppleScript, use “background” in place of “bkgnd”):
-- name
card field id 3894
card field "My Notes"
card field 1
first card field
background field 3 of card 1