> ## 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.

# IScriptDefinitionContext

> IScriptDefinitionContext gives FlexiCapture scripts access to the current project and a LoadFile method for loading files attached to the scripted object.

## What it does

Provides access to some properties of the objects that may be used in scripts.

## Methods

| **Definition**                                                                           | **Description**                                                                                                                                                                                                                                                                                                |
| ---------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| LoadFile( name: string) : [IUserAttachment](/flexi-capture/appendix/scripts/iattachment) | Loads a file that is attached to the object that contains the script. Some possible applications for this method are loading a dictionary from a FlexiLayout using its name or loading a reference assembly file. This method is also used in FlexiCapture for Invoices scripts to load XML description files. |

## Properties

| **Name** | **Type**                                             | **Access** | **Description**                                   |
| -------- | ---------------------------------------------------- | ---------- | ------------------------------------------------- |
| Project  | [IProject](/flexi-capture/appendix/scripts/iproject) | Read-only  | Provides access to information about the project. |
