The following examples demonstrate the syntax and usage of the Summation scripting object model.
Please Note: These examples are not meant to be used as a general solution.
Overview
The
Backup Case Organizer script creates a copy of the current
CaseOrg folder as a method for backing up the
Case Organizer and its tabs. The backup is complete copy of the
CaseOrg folder, named by the current date and created in
\Profiles\AllUsers\CaseOrgBkups.
Description
This script uses the Microsoft Windows
FileSystem object (an object-based tool for working with files and folders) extensively. It uses the
FileSystem object to check for the presence of an existing
CaseOrgBkups folder within the case’s
\Profiles\AllUsers directory. It also uses the FileSystem object to create the directory when absent as well as to copy the
CaseOrg folder into the
CaseOrgBkups folder.
Each backup folder is created by the script using the current date (sans backslashes) as the backup folder’s name. If a folder of the same name already exists the script applies a numeric (incrementing) suffix to the new folder’s name (e.g. if there already is a folder titled
021601 the backup will create one named
021601-1, if that exists then one named
021601-2 will be created, etc).
Collections / Objects / Methods / Properties >>More
Overview
The Cleanup Case Organizer Backups script deletes the old backups created within the CaseOrgBkUps folder.
Description
This script uses the Microsoft Windows FileSystem object (an object-based tool for working with files and folders) extensively. It uses the FileSystem object to check for the presence of an existing CaseOrgBkups folder within the case’s \Profiles\AllUsers directory. It also uses the FileSystem object to delete the directories within the CaseOrgBkups folder created prior to a specific user specified date.
Collections / Objects / Methods / Properties
>>More
Overview
The Restore Case Organizer script allows a user to restore the Case Organizer to a previous state using one of the previously saved backups.
Description
This script uses the Microsoft Windows FileSystem object (an object-based tool for working with files and folders) extensively.
Collections / Objects / Methods / Properties
- FileSystem object
- CT Summation’s Application object
- AskEntry
- CaseDir
>>More
Overview
The
ImageVerify script generates a report of the current case’s missing image files.
Description
This script uses Microsoft's ADO Data Control to read the current case’s
Image Information table and Microsoft Windows FileSystem object (an object-based tool for working with files and folders) to detect if any listed image file is missing from the file system. The script includes extensive
Image Information IMGFiles column parsing to convert CT Summation
Image Information table syntax to Windows filepath. The script then uses the
FileSystem object to write its findings to disk.
Collections / Objects / Methods / Properties- FileSystem object
- Microsoft ADO Data Control
- CT Summation’s CurrentCase object
- CurrentCase.CoreDBPath
- CT Summation’s IMG object
- IMG.CountPages
- IMG.GetNthImgFile
>>More
Overview
The ScriptInHTML HTML page/script demonstrates accessing the Summation scripting object model from within an HTML page.
Description
The ScriptInHTML script calls the Summation object model while running within Internet Explorer (demonstrating how to run scripts from outside of CT Summation scripting). This script performs basic tasks, such as reading a few Summation scripting object property values and then creating basic HTML for displaying those values within the HTML view (one step above a “Hello World” application).
The sample HTML/script page can be run/seen within a Summation view by first copying the HTML file to the Summation application folder, then running the following script in the Summation scripting window:
AddHTMLTab "ScriptInHTML", AppDir & "ScriptInHTML.htm"
Collections / Objects / Methods / Properties
- HTML
- CT Summation CurrentCase object
- CurrentCase.CaseDir
- CurrentCase.FormName
- CurrentCase.ImageDir
- CurrentCase.NotePath
- CurrentCase.ProfileDir
- CurrentCase.SharedProfileDir
>>More
Discovery Cracker Installer 5.5
Download Now
Discovery Cracker Updater 5.5
Download Now
Discovery Cracker 4.8
Download Full Installation
Discovery Cracker Documentation
Discovery Cracker User Guide and Field List
If you have trouble downloading, please contact AD Summation Technical Support.