Functions

parent

Supported By

Syntax

[the] parent of factor

parent ( expression )

Factor and expression yield an object with a parent.

Examples

put the parent of char 3 of "Hello" -- yields "Hello"
put the parent of file 1

Description

The parent function returns the parent object of its argument. This is valid only for certain kinds of objects, such as chunks and file system objects. If the specified object does not have a parent, a script error is triggered.

For chunks, the parent function returns the container originally specified in the chunk expression.

For files and folders, the parent function returns the containing folder. For forks, the parent function returns the containing file.