Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.
Note: container
cannot be a variable.
The select
command selects buttons, fields, or text.
Select button
selects a button as if you had chosen the Button tool and clicked it. Select field
selects a field as if you had chosen the Field tool and clicked it.
Note: You can’t use select
to select hidden buttons or fields, and the user level must be set to Authoring or Scripting for select
to work.
Select empty
removes the current selection. Use select empty
instead of click at
to deselect text or objects.
Select text
applies to all the text in a field or in the Message box. You can select all the text or place the insertion point before the first character or after the last character of text.
Select chunk
applies to a specified range of text in the Message box or in a field, to one or more lines in a list field, or to a line (that is, a “menu” item) in a popup button.
In the Message box or in a field you can select the entire range of text or place the insertion point before the first character or after the last character of the range.
HyperTalk Definition
An expression that identifies a button by name, number, or id, using one of the following forms:
For example:
When used inside a button script: me
When a button receives a message: [the] target
A button 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.
AppleScript Definition
An expression that identifies a button by name, number, or id, using the same forms as HyperTalk except that “background” must be used in place of “bkgnd”.
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
HyperTalk Definition A place where you can store and retrieve a value. There are six types of containers in HyperCard: a variable, a button, a field, the selection, the Message box, and menus. Additionally, you can refer to a button or field by its part number: AppleScript Definition An object that contains one or more other objects, known as elements of the container. In a reference, the container specifies where to find an object. You specify containers with the reserved words You can also use the possesive form ( the container is One of the following forms (or combinations thereof): For example: A chunk combined with Important: You can’t combine a stack name with a chunk expression—you can only refer to a chunk in the current stack.container
of
or in
.'s
) to specify containers. For example, infirst window
. The object it contains is a name property.chunk
of
and a container is called a chunk expression. For example: line 1 of card field "index"