Skip to main content
You can handle the following events with scripts. Automatic scripts are set up according to the batch type and are not called during Undo operations.
Executed after the station is started.
Executed before the station is closed.
Executed upon completion of the scanning session. Scripts of this type are intended for modifying a scanned batch according to custom rules.
Executed after adding a page to the batch. Scripts of this type are intended for modifying a page.
Executed after a batch has been created manually or automatically during scanning. Scripts of this type are intended for filling registration parameters of the batch, renaming the batch according to custom rules, and so on.
Executed after a document has been formed manually or automatically during scanning. Scripts of this type are intended for filling registration parameters of the document, renaming the batch according to custom rules, searching for a barcode value using an external component, and so on.
Executed before the element is deleted by the user. Scripts of this type are intended to prevent deleting important elements.
Executed before the user applies a page modification operation. Scripts of this type are intended to prevent modification of pages that have already been modified. Information about the operation being executed is available in this script.
Executed after the user applies a page modification operation. Scripts of this type are intended to save information about modified pages. Information about the operation being executed is available in this script.
Executed before the task is sent to background, but after the batch registration parameters are defined. If the call fails, the export task is not performed and a predefined message is displayed to the user. Scripts of this type can modify the batch.
Executed after the export task is completed in the background, but unlike the export task the script is executed in the main application. If the main application is closed at the moment of export completion, the script will be executed with the next start of the station. Scripts of this type can modify the batch.You can check whether the export succeeded using the script parameters “IsExported” and “ExportError”.
Executed in the background similar to other types of export. Scripts of this type cannot modify the batch, they can only return the result path and/or the reason for the failure and the list of exported batch elements. The list and the path will be available for the script if the export is resumed.Scripting export is set up in the batch type on the export tab.
A named list of scripts is declared in the batch type. You can select a script to run from this list when you call the corresponding command for the open batch.Scripts from lists of any type can be added as a separate button to an additional user scripts toolbar.Note. Toolbar customization can be called both from the list of scripts and from the main menu.In the list of scripts, you can also assign an event that triggers the script.