---
title: "closeScript"
canonical: "https://help.vicon.com/space/Shogun16/13340050/closeScript"
format: markdown
---
# Description

Closes the script in which it is used or the script currently loaded into the script editor.

A Save prompt is displayed if changes to the script have not been saved.

## Functional area

Interface

# Command syntax

## Syntax

|  |
| --- |
| `closeScript` |

### Arguments

None

### Flags

None

## Return value

void

## Examples

```plaintext
//selects all the bones in the current clip and closes the script
selectByType Bone;
closeScript;
```

# Additional information

## Related commands

- [saveScript](https://vicon-help.atlassian.net/wiki/spaces/Shogun16/pages/13340296)