Name
beginning
Syntax
set list1 to {1,2,3,4,5} set the beginning of list1 to 10 -- list1 is now {10,1,2,3,4,5}
Synonyms
front
Description
beginning
and front
are
reserved words that specify an insertion location in the beginning of
a text file, for instance. Like back
and
end
, beginning
and
front
are Relative reference forms; however, they
point to the first insertion point rather than the last insertion
point of a container. You can also use beginning
and end
with lists, in the manner of the Syntax
example.
Get AppleScript in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.