These functions are available to your Perceptive Enterprise Search script.
Show a message box containing the message text. Not recommended for Perceptive Enterprise Search.
Message
String expression displayed as the message in the dialog box.
Response
- populate the response object with the metadata for the document. Response
properties/methods are:
The Base64Decode method decodes a string from base64.
EncodedString
The base64 encoded string to decode.
Returns the value base64 decoded.
Base64 is a method of encoding binary data. Base64 encoding divides three bytes of data into four bytes of ASCII text, making the resulting file size approximately 33% larger.
The Base64Encode method encodes a value into a base64 encoded string.
String
The value to base64 encode
Returns the base64 encoded value.
Base64 is a method of encoding binary data. Base64 encoding divides three bytes of data into four bytes of ASCII text, making the resulting file size approximately 33% larger.
Checksums (CRC) the given value, returning a numeric representation of the data. This can be used to determine when two values have changed.
Value
Contains data to be checksummed. Can be a string, array or numeric value.
Returns the CRC of the value
A checksum is a calculated numeric value based on the content of the data, this value can be stored then used at a later time for comparison to see if content has changed.
Decrypts a value previously encrypted with Encrypt function.
Value
Contains the string that is to be decrypted.
Returns the decrypted string.
Provides basic encryption for storing sensitive data within your scripts.
Value
Contains the string that is to be encrypted.
Returns the encrypted string.
Returns the extension portions of a file name, including the ".".
Filename
Contains the filename whose extension is to be returned.
Returns the extension of the filename including the period (.). Returns empty string for files with no extension.
Extracts the name and extension parts of a file name.
Filename
Filename or path from which the filename should be extracted.
Returns the filename and extension of the file.
The resulting string is the rightmost characters of Filename, starting with the first character after the colon or backslash that separates the path information from the name and extension. The resulting string is equal to Filename if Filename contains no drive and directory parts.
Returns the drive and directory portions of a file name.
Filename
Filename or path from which the file path should be extracted.
Returns the path of the file.
The resulting string is the leftmost characters of Filename, up to and including the colon or backslash that separates the path information from the name and extension. The resulting string is empty if Filename contains no drive and directory parts.
Returns a boolean value indicating if the specified file exists on disk.
Filename
The name of the file whose existence is to be determined.
Boolean indicating the existence of the file.
FileExists returns true if the file specified by Filename exists. If the file does not exist, FileExists returns false.
Returns a list of all NTFS file properties stored for the given document.
Filename
Filename of the document whose file properties are to be returned.
Returns a dictionary of properties for the given file.
Set Props = FileProperties( "c:\documents\resume.doc" ) For I = 0 to Props.Count-1 Name = Props.Keys(I) Value = Props(I) Next
Removes HTML encoding from the given string.
Value
Specifies the text to be HTML decoded.
Returns the text html decoded.
The HTML decoding process decodes HTML entities back into the corresponding characters, for example < becomes <, > becomes >.
Applies HTML encoding to the given string. This method ensures that text is safe to display inside HTML templates.
Value
Specifies the text to be HTML encoded.
Returns the text html encoded.
HTMLEncode converts characters as follows:
Returns the path to the Perceptive Enterprise Search installation.
Returns the path where Perceptive Enterprise Search is installed.
Loads the type library information, this is useful to access named constants contained within a third party COM object library.
TypeLibrary
The registered GUID of the type library.
Major
[optional] The major version number of the type library.
Minor
[optional] The minor version number of the type library.