The method for Batch Restructuring scripting is accessed through the QAAutoProcessingBatchRestructureScript class.
The SetBatchRestructureActionOnPage method is called during the Batch Restructure command in QA Auto Processing. The Batch Restructure command will iterate through all the pages in a Batch allowing the script to determine the structure of the Batch. The return value of the script will determine what is done with the current page. The following actions are available to be returned: