# Scripting

The In-Sight Script functions are used to create scripts, which store JavaScript source code inside a cell, allowing custom-designed source code to be a part of a job.

Scripting provides the ability to create repetitive processing routines, string parsing and formatting operations, background event processing (scripts that run separate from the inspection), custom graphics, and shared JavaScript modules (stored on the file system).

- Script: Create and edit JavaScript code to run user-written source code (created in the Edit Script Dialog).
- Get: Vision Data Access function that accesses the properties of arrays and / or objects returned by a Script function.
- Script Function JavaScript Source Code and API Reference: Overview of guidelines to follow when writing JavaScript source code for a Script function.

Note: FTP based paths for camera access is not supported at this time.

## Scope

Objects or variables are available to code within the Script cell or module in which they are declared and are not visible to script in other cells.