Using Snippets
You can insert individual commands or command sequences (snippets) in your eScripts or Universal Scripts. Depending on how the snippet is configured, you can edit the variable contents before inserting the snippet. When a snippet is inserted, its contents are resolved and the commands can be edited as usual in the Script Editor.
How to use snippets:
- Open the Script Editor for an eScript Package or Universal Script Package.
- Open the eScript view and, if applicable, the
Snippets tab.
- Drag a snippet to the designated location in the script.
If the snippet contains changeable variables, a dialog box pops up where you can customize the values of the variables individually.
- Change the variables, if required.
The snippet is inserted in the script in the designated location. The variables are replaced with the specified values. At the same time, the files stored in the snippet folder are copied to the package folder.
The snippet is resolved completely when inserted; what remains is the created command sequence including the associated files in the script.Note that the indentations in the script are not set automatically. For example, if you place a snippet in an IF loop, the commands must be indented manually.