Insert a Line within a container


What is the proper syntax to insert a line within a container?

For example, I want to insert a line between line 3 and line 4 of a container.


To insert a new line between two lines of a container, use the “put before” or “put after” command, and be sure the line you’re inserting begins with a return character (for “put after”) or ends with return (for “put before”) in order to separate the new line from the one you’re appending (or prepending) to:

put return & "My New Line" after line 3 of myContainer -- inserts a new 4th line

  • or -
put "My New Line" & return before line 4 of myContainer -- inserts a new 4th line