Home THE HYPERCARD CENTER

HyperTalk Reference
Home » 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.

cantAbort

set [the] cantAbort of stack ¬
to trueOrFalse

The cantAbort property returns or sets whether users can type Command-. (Command-period) to stop any running handlers. It corresponds to the Can’t Abort check box in the Protect Stack dialog box. Use cantAbort to prevent users from canceling certain critical operations that would leave a stack in a confusing or dangerous state.

Warning: Use cantAbort with caution. Once cantAbort is set to true, there's no way to halt an errant handler. Set cantAbort to true, and then immediately set it to false when you no longer need it.

Examples

set the cantAbort of this stack to true
set the cantAbort of this stack to false

Placeholders

stack

An expression that identifies a stack by its name, using one of the following forms:

this stack
stack text -- name or path name

For example:

stack "Home"
stack "Simonides:School:References"
this stack
stack "HD:Stacks:Addresses alias

When used inside a stack script: me

When a stack receives a message: [the] target

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"

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View