Script Libraries |
Top Previous Next |
Script libraries are standard routines of code that perform functions available to Image Manager jobs. Code is run via the filters, lookups, and validations objects. There are different code library sets, and for each one there is a set provided by the publisher and one that is available to customize by the user. Any file with a "custom.ini" suffix is maintainable by users. If there are duplicate section names in both files, the custom.ini version takes precedence, though that may mask functionality added by the publisher at updates.
The left panel displays the files available to view or edit. The center panel displays the routines found in that file, along with a (file notes) section that provides documentation. The right panel contains the settings and code for that routine. Settings include specific name=value lines appropriate for the type of script. These lines, and comment lines starting with #, are ignored when the script code runs. All the other code executes and performs a specific task.
The Where Used tab displays a grid of where the selected routine is referenced in Image Manager and DocFlow jobs.
The Script Libraries tool provides support for alternate library files the can contain pre-defined routines for specific product integrations. These follow a different naming convention, where the suffix is something.ini rather than .ini or custom.ini. Routines in these files can be copied to *.custom.ini files, and visa versa. In some cases, it can even be beneficial to copy a whole file over the custom.ini version at a system level, to provide a starting set of routines for a specific ERP integration.
When selecting routines from a file other than the standard .ini or .custom.ini, the toolbar provides a copy button to enable copying one or more selected routines to the custom.ini version of this file.
|