|
|
|
|
File Object
|
File.Created
|
The creation time of the file.
|
Script & Assignments
|
File.Exists
|
Returns True if the file exists, otherwise false.
|
Script & Assignments
|
File.Extension
|
The extension of the file.
|
Script & Assignments
|
File.FullPath
|
Gets the full path to the processed file.
|
Script & Assignments
|
File.GetPath
|
Gets the folder name from file ascending. For example, GetPath(0) would return Folder2 for "C:/Folder1/Folder2/File.txt".
|
Script & Assignments
|
File.GetPathFromRoot
|
Gets the folder name from the root descending. For example, GetPathFromRoot(0) would return Folder1 for "C:/Folder1/Folder2/File.txt".
|
Script & Assignments
|
File.Modified
|
The last time the file was modified.
|
Script & Assignments
|
File.Name
|
The full name of the file. To extract part of a file name, e.g. the characters 2 to 6 use Mid(File.Name,2,5).
|
Script & Assignments
|
File.Size
|
The size of the file in bytes.
|
Script & Assignments
|
File.Title
|
The title of the file. (e.g: test.docx -> test).
|
Script & Assignments
|
Index Data Object
|
ExecuteProfile
|
This function executes a File indexing profile given the indexing profile id and the filepath to the file. Usually used with an e-mail indexing profile, where we can get index data from an attachment too. (e.g PDF attachment).
|
Script
|
GetField
|
Gets the current index data value of the specified field.
|
Script
|
SetCategory
|
Gets the category for the current document. You can use an integer (category ID) or a string (category name).
|
Script
|
SetField
|
Sets the value of the index data field.
|
Script
|
SetCaseNo
|
Sets the CaseNo for this Index Data object.
|
Script
|
SetCaseDef
|
Initializes this index data object, with a case definition. DO NOT USE THIS DIRECTLY ON THE PREDEFINED IndexData object (the predefined object is used when you don’t write an object name in front of the function call). This should be used in conjunction with CreateThereforeObject. See Creating a New Case.
|
Script
|
CreateCase
|
Use this after you have initialized the index data object with a case definition and after all mandatory fields are filled in. DO NOT USE THIS DIRECTLY ON THE PREDEFINED IndexData object (the predefined object is used when you don’t write an object name in front of the function call). This should be used in conjunction with CreateThereforeObject. See Creating a New Case.
|
Script
|
Profile Object
|
AddNewKeyword
|
With this function you can add a new keyword to an already existing keyword dictionary.
|
Script
|
FilesToSave
|
Sets the files that should be saved with this document.
|
Script
|
NotApplicable
|
Call this function if you want to abort the indexing profile execution.
|
Script
|
ReadPart
|
Reads a part of the text, specified with a mask. For example to extract 1234 from PO:1234 use: ReadPart (Extract("ExtractedStringName"), "PO*:?"). The "*" represents 'any text' and the "?" represents the section to be extracted.
|
Script & Assignments
|
ScriptError
|
Stops the execution of the script and throws an error with the specified text.
|
Script
|
ToDate
|
Converts a string in the specified format to a date.
This is needed, for example, when the date on imported documents is in a different format to the system.
Use "D", "M", "Y" for day, month, year respectively. Delimiters are interpreted strictly, for example "D-M-Y" the delimiter MUST be "-" in this case. To represent any delimiter use "~".
|
Script & Assignments
|
ToFloat
|
Converts a string in the specified format to a float number. This is needed, for example, when the money format on imported documents is in a different format to the system.
|
Script & Assignments
|
CreateThereforeObject
|
This function will create a new Therefore object. As parameter, an array is expected. The first element in the array should always be a string with the object name you want to create. Currently this can be used to create an Index data object. See Creating a New Case.
Note: If you use the scripting help dialog, it will insert a predefined CreateThereforeObject call.
|
Script
|
Data Extractor Object (PDF)
|
Extract
|
Gets the value of the defined item name.
|
Script & Assignments
|
ExtractList
|
Gets the vale of the defined item name on all pages of the PDF (only applicable if the item name was defined with Page set to "All pages").
|
Script & Assignments
|
GetFormField
|
Gets the value of the PDF form field
|
Script & Assignments
|
SetErrorOnMissingTag
|
If set to True, the extract functions will throw an error if the item name is not found. Otherwise the Extract function will return empty.
|
Script
|
PDF Document Properties
|
GetAuthor
|
Gets the Author
|
Script & Assignments
|
|
GetCreationDate
|
Gets the creation date
|
Script & Assignments
|
|
GetCreator
|
Generally gets the application that created the PDF
|
Script & Assignments
|
|
GetCustomProperty
|
Gets a custom property from the PDF. e.g GetCustomProperty("MyProp")
|
Script & Assignments
|
|
GetKeywords
|
Gets the keywords associated with the PDF
|
Script & Assignments
|
|
GetModificationDate
|
Gets the last modification date
|
Script & Assignments
|
|
GetProducer
|
Gets the PDF Producer
|
Script & Assignments
|
|
GetSubject
|
Gets the PDF Subject
|
Script & Assignments
|
|
GetTitle
|
Gets the PDF Title
|
Script & Assignments
|
Data Extractor Object (XML)
|
Extract
|
Gets the value of the first tag found. (e.g. Extract("ExampleTag") will extract the value of the first tag with name "ExampleTag").
|
Script & Assignments
|
ExtractAttribute
|
Gets the value of the specified attribute of the specified tag. (e.g. ExtractAttribute("ExampleTag", "att1") will extract the attribute: att1 from the first tag with name "ExampleTag".
|
Script & Assignments
|
ExtractList
|
Gets the value of each tag. (e.g. ExtractList("ExampleTag") will extract the values from all tags with name "ExampleTag").
|
Script & Assignments
|
ExtractListAttribute
|
Gets the value of each attribute in the specified tag. (e.g. ExtractListAttribute("ExampleTag", "att1") will extract the attribute: att1 from all the tags with name "ExampleTag".
|
Script & Assignments
|
ExtractListTable
|
Similar to ExtractList but ensures that any empty rows in a table are retained. Hence the table tag must be specified. (e.g. ExtractListAttribute("TagName", "TableTag")
|
Script & Assignments
|
ExtractListXPath
|
Can be used to execute an XPath query on the XML document.
|
Script & Assignments
|
Count
|
Gets the count of nodes from the XPath query.
|
Script & Assignments
|
SetErrorOnMissingTag
|
If set to true, every Extract function will throw an error if the specified tag was not found. Otherwise the Extract function will return "empty". Default is set to false.
|
Script
|
Data Extractor Object (Text-Line/Text-Page)
|
Extract
|
Gets the value of the defined item name.
|
Script & Assignments
|
ExtractList
|
Gets the vale of the defined item name on all pages of the text file (only applicable if the item name was defined with Page set to "All pages").
|
Script & Assignments
|