Home
The HyperCard Center
HyperTalk Reference

Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page.

mark

mark all cards
mark card
mark cards where trueOrFalse
mark cards by finding ¬
[international] text [in field]
mark cards by finding chars ¬
[international] text [in field]
mark cards by finding word ¬
[international] text [in field]
mark cards by finding whole ¬
[international] text [in field]
mark cards by finding string ¬
[international] text [in field]

The mark command sets the marked property of the specified cards to true. You can operate on the set of marked cards with commands such as print, go, show, and sort.

Mark cards where evaluates the given expression for every card in the stack. If its value is true, the card is marked.

Mark cards by finding marks cards using the same mechanism as the find command. It marks cards very quickly.

Examples

mark all cards
mark card 1
mark any card
mark last card of next bkgnd
mark cards where field "title" contains "select"
mark cards where (word 2 of field "Pages" = 1)
mark cards where isaCommand() -- a function that returns true or false
mark cards by finding "Duffy" in bkgnd field "Author"
mark cards by finding whole "Cupertino, CA" in field "Address"
mark cards by finding international "schøål" in field 5

Related Topics

Placeholders

card

An expression that identifies a card by name, number, or id using one of the following forms (in AppleScript, use “background” in place of “bkgnd”):

recent card
back
forth
card id posInteger [of bkgnd
card text [of bkgnd] -- name
card posInteger [of bkgnd] -- number
ordinal card [of bkgnd]
position card [of bkgnd]
ordinal marked card
position marked card
marked card posInteger

For example:

card id 3894
card "Index"
card 1 of background 1
prev card
previous card of this background
next card
this card
first card
last card
middle card
any card
first marked card
last marked card
next marked card
previous marked card
marked card 1
marked card (the number of marked cards)

When used inside a card script in HyperTalk: me

When a card receives a message: [the] target

See also: button and field

trueOrFalse

Any expression that evaluates to the HyperTalk and AppleScript constants true or false.

For example:

true
false
the hilite of bg btn "Yes"
fld "Zip" contains "95014"
the short name of this stack is "Fred"

text

An expression that evaluates to a text string.

A text expression can be a literal string surrounded by quotation marks or the value of a container.

For example:

"Hello"
"The sum is:" && 3
card field 1
line 1 of bg fld "Address"
the Message box
the selection
myVar -- a variable

See also: background, bkgnd, button, card, field, menu, menuItem, and 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] -- name
card 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:

card field id 3894

card field "My Notes"

card field 1

first card field

background field 3 of card 1

When used inside a field script in HyperTalk: `me`
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.

HyperTalk Reference

Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Retro View