Scripts are short programs similar to C that can be used to edit text or binary files (see Introduction to Templates and Scripts). This section lists all available menu options in the Scripts menu:
- New Script - Creates a new script file and opens it for editing in the interface.
- Open Script - Displays a file dialog box for loading an 010 Editor Script file (usually with file extension ".1sc").
- Edit Script - If a script has been associated with the current file, the script is opened in the application for editing. If no script is associated with the current file, the last accessed script will be opened and if no script has been opened you will be asked to create a new script or open an existing script. Scripts can be associated with the current file by using the Run Script menu option or the Run button in the top-right corner of the Script editor. See Running Templates and Scripts for more information.
- Run Script - If the currently selected file is not a script, clicking the 'Run Script' menu option will run any script that is associated with the current file. If the current file is a script then clicking this option will execute the script on the selected file. See Running Templates and Scripts for more information. If a script modifies a file, the 'Edit > Undo' menu option will undo any changes. Note that other editing operations can be performed while a long Script is running.
- Continue Script or Template - This menu option only appears when a Script or Template is paused at a line using the debugger. Clicking continue will resume execution of the Script or Template from the current line. Note that only one Script or Template can be run at a time and the current Script or Template must be stopped to run another.
- Stop Script - This menu option only appears when a Script is executing or is paused at a line using the debugger. Click Stop Script to stop the Script and reset the debugger without deleting any variables that were created.
- (Installed Script List) - Displays a list of installed scripts sorted by category such as 'Randomize', 'IsASCII', 'MultiplePaste', 'SplitFile', and 'JoinFile'. Clicking on an item in this menu usually executes the script but can also be configured to load the script into the interface for editing. See Script Options for more information on adding scripts, changing script options, or using the default custom scripts. Scripts can also be installed using the Repository Dialog.
- View Installed Scripts - Opens the Script Options dialog that can be used to add or customize scripts on the Installed Script List.
- Script Repository - Displays the Repository Dialog which can be used to install Scripts other people have uploaded. Please consider uploading to the Repository any useful scripts you have developed. The Repository can also be accessed online at 'https://www.sweetscape.com/010editor/repository/'.