Overview

In Document Automation Server (DAS) Content Extraction, the user can execute custom scripts after each file is successfully processed. This gives the user a chance to do some custom post processing on the file input or output files. It also empower users to perform any type of operations that are not available in DAS Content Extraction.

We use Windows Script Host (specifically the command line utility CScript) to execute these scripts. Below is an example of the command line generated to execute a custom script.

If the Debug option is set on Job Settings, you will be able to see the arguments as follows:

cscript  "C:\Aquaforest\Kingfisher\Custom\testarguments.wsf"  ^
"/Newfilename:00000006.pdf"  ^
"/Oldfilepath:C:\Aquaforest\Kingfisher\In\invoice_6.pdf"  ^
"/TempOutputFile:C:\Aquaforest\Kingfisher\temp\jobs\10012\bb3e649b-6cda-4de4-bd45-c69d12f23227\target\00000006.pdf"  ^
"/TempTarget:C:\Aquaforest\Kingfisher\temp\jobs\10012\bb3e649b-6cda-4de4-bd45-c69d12f23227\target"  ^
"/FinalTarget:C:\Aquaforest\Kingfisher\Out\Split\Text Change"  ^
"/JobSource:C:\Aquaforest\Kingfisher\In" "/LocationType:file"  ^
"/value1:00000006"