Note: This is a work in progress and will be formatting errors. Read more about the project on the home page. setset [the ] property to expression set [the ] property of object ¬ to expression [the ] property of window ¬ to expression set [the ] property of [menuItem of] ¬ menu to expression set [the ] property of chunk ¬ of field to expression 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. Examples
Demo Script
PlaceholderspropertyHyperTalk DefinitionA 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 DefinitionA characteristic of an object that has a single value and is identified by a label. expression HyperTalk DefinitionAny 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 DefinitionAny series of words that has a value. object HyperTalk DefinitionThe object HyperCard , or any expression that identifies an object by name, number, or id.For example:
AppleScript DefinitionAn identifiable part of an application, or a thing within an application that can respond to commands. window 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). menu An expression that evaluates to one of the following: For example: chunk One of the following forms (or combinations thereof): ordinal charactercharacter posInteger [to posInteger ]ordinal wordword posInteger [to posInteger ]ordinal itemitem posInteger [to posInteger ]ordinal lineline posInteger [to posInteger ]For example:
A chunk combined with of and a container is called a chunk expression. For example:
Important: You can’t combine a stack name with a chunk expression—you can only refer to a chunk in the current stack. field 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”): card field id posInteger [of card ]card field text [of card ] -- namecard field posInteger [of card ]ordinal card field [of card ] [bkgnd ] field id posInteger [of card ] [bkgnd ] field text [of card ] -- name [bkgnd ] field posInteger [of card ]ordinal [bkgnd ] field [of card ]For example:
When used inside a field script in HyperTalk:
When a field receives a message:[the] target A field can also be referred to as a part when you’re talking about its position among all buttons and fields within the same card or background. Related Topics
|
Version 0.7b1 (March 24, 2022)