# 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 A job is a user-configured program in Spreadsheet consisting of functions and designed for specific applications. You can create and edit jobs using the Spreadsheet interface, and load them on a vision system for deployment in a live environment..

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 Functions are tools that are available in Spreadsheet for processing and analyzing acquisitions or other results. You can add functions to your Spreadsheet job to create tool chains and produce results for specific applications. 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.