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.

freeSize

the freeSize of stack

The freeSize property returns the amount of free space, in bytes, in the specified stack. (Free space is created in a stack each time you add or delete an object or graphics.)

To set the freeSize property to 0, choose Compact Stack from the File menu or use the command

doMenu "Compact Stack"

from a handler or the Message box.

Examples

get the freeSize of this stack
if it > 10240 then doMenu "Compact Stack"

Demo Script

on checkFreeSize
get the freeSize of this stack
answer "The freeSize of this stack is" && it div 1024 & "K."
end checkFreeSize

Related Topics

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

HyperTalk Reference


Version 0.8b4 (July 4, 2025)

Made with Macintosh

Switch to Modern View