the
parent
of
factor
parent
(
expression )
Factor and expression yield an object with a parent.
put the parent of char 3 of "Hello" -- yields "Hello"
put the parent of file 1
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 file
s and folder
s, the parent
function returns the containing folder
. For fork
s, the parent
function returns the containing file
.