Scripting

PSIcapture capture profiles provide a rich set of configuration options to cover a wide variety of situations for document capture, indexing, validation, and migration. However, business requirements are as varied as businesses themselves, and there is simply no way to account for every business need. To that end, PSIcapture provides a powerful scripting interface to add custom logic directly into a batch process.

Where can it be used?

The scripting interface is available at key points during a batch's life cycle:

  • Auto Import

  • Document separation

  • Bar code processing

  • Indexing

  • Advanced indexing

  • Classification

  • QA Auto Processing

Use scripts to apply custom business rules for index data validation and manipulation. Scripts can also connect to external databases, or call external programs and web services.

What can you do with scripting?

  • Filter and sort files before they are queued for Auto Import.

  • Control separation and trigger separation profiles.

  • Extend bar code processing.

  • Manipulate and validate captured values.

  • Alter lookup query parameters, and filter values returned from lookups.

  • Call a function in an external API or DLL.

  • Query external databases.

  • Trigger Zone Definition profiles.

  • Restructure batches.

What can you NOT do with scripting?

  • Scripting cannot control aspects of the graphical user interface. It cannot alter what the operator sees on the screen, control tabbing behavior between index fields, and so on.

  • Scripting cannot be used to skip or alter PSIcapture's internal processes. For example, scripting cannot be used to bypass workflow steps.

  • Documents cannot be added or removed, and folder and document records cannot be deleted.

Script programming

Scripts are written in C#, a standard Microsoft .NET-managed language. The C# language can be a bit daunting at first glance. While it does take a while to master, it takes very little time to learn the basics. There are hundreds of tutorials available on the internet and equally as many books on the subject.

Experienced C# programmers should have no trouble navigating the PSIcapture Script Editor. The editor is very similar to the one in Visual Studio, complete with IntelliSense prompting to help navigate the various properties available.

For more complex scripting requirements, contact Kofax Professional Services. We can construct a suite of scripts to fit any business need.