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.

cantPeek

set [the] cantPeek of stack ¬
to trueOrFalse

The cantPeek property returns or sets whether users can press Command-Option or Command-Shift-Option to peek at the location of buttons and fields and use the Command-Option shortcuts for accessing scripts. It corresponds to the Can’t Peek option in the Protect Stack dialog box.

The default value is false, meaning that you can peek at fields and buttons and use the Command-Option shortcuts for accessing (or peeking at) scripts.

Examples

set the cantPeek of this stack to true
set the cantPeek of stack "Home" to true

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