---
title: "saveScript"
canonical: "https://help.vicon.com/space/ShogunPost121/1253739045/saveScript"
format: markdown
---
# Description

This command saves as a script the current contents of the **Script Editor**. If no path is specified, a file browser opens, defaulting to the last saved script location, enabling you to specify a path for saving. If you specify a path, use forward slash ( / ) path separators.

## Functional area

Interface

# Command syntax

## Syntax

> Macro (scroll-tablelayout)

|  |
| --- |
| `saveScript ["scriptPath"]` |

### Arguments

| Name | Type | Required | Comments |
| --- | --- | --- | --- |
| `scriptPath` | string | yes | Specifies the path to which to save the script |

### Flags

None

## Return value

void

## Examples

```plaintext
//Saves the contents of the script editor to the specified path
//Note: forward slash separators are used.
saveScript "C:/temp";
```

# Additional information

## Related commands

- [loadScript](https://vicon-help.atlassian.net/wiki/spaces/ShogunPost121/pages/1253737018)