You can use scripts to perform various functions, such as:
Walking node hierarchies
Modifying the value of properties, aspects, and associations
Transforming and manipulating content
Processing WCM Web projects and AVM objects
Creating groups, people, and modify permissions
Creating new files, folders, or nodes
Copying, moving, and deleting nodes
Creating, modifying, and removing child and target associations between nodes
Including (or importing) other scripts
Web applications built on the Alfresco Surf platform use Web scripts, but they do not execute directly within the context of an Alfresco repository. Instead, they execute within a remote presentation tier (for example, an entirely new Web application running on a separate Web tier).
Script files can be stored on the classpath (for example, in alfresco/extension/myscripts) or in a repository store. Scripts are generally stored ...