SetScript methods

The SetScript methods let you provide a template as either a text string or a file. The API uses the template and replaces the values in it by a combination of properties set on the object and the values from the array passed into the following methods:

SetScriptText(Text, ArryOfParameters)
SetScriptFile(Filename, ArryOfParameters)

The SetScript methods allow a custom string or file to be passed in and used as a template. The array of parameters lets you use a list of substitutions on the template, if required.