> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Batch opened/closed

> Script reference for the Batch opened/closed event in ABBYY FlexiCapture, which runs when a batch is opened or just before it is closed.

## When it is launched

The script is launched upon opening or prior to closing the batch.

## Parameters

| **Name** | **Type**                                         | **Access**                                                                                                                           | **Description** |
| -------- | ------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | --------------- |
| Batch    | [IBatch](/flexi-capture/appendix/scripts/ibatch) | Read-only. Internal[\*](/flexi-capture/appendix/scripts/batch-opening#asterisk) fields of batch documents and pages are unavailable. | The batch       |

<a id="asterisk" />\* - The internal field requires loading the object into memory.
