Skip to main content
Version: 25.4

join, joined by

Command, Function, Operator

Synonyms: combine, combined

The split and join (or combine) commands can be called as functions as well as commands. Having these available as functions makes it easy to use the resulting value. The functions may also be called using an operator-like syntax shown in the second example below.

Examples:

set path to "/Users/doug/Documents"
put split(path, "/") into components
insert "Eggplant" after components
set newPath to join(components, "/")
put newPath --> /Users/doug/Documents/Eggplant
put path split by "/" into components
set newPath to components joined using "/"

Further Reading

Resources in our other reference manuals.

Related terms in the SenseTalk Dictionary.