Edit

To Create a New Script

  1. Click the plus icon at the bottom left of the scripts window

You will be asked to enter the script name.

Note that the name must be unique (you cannot have two scripts with the same name).

The Add a new UI Form option is used to design and create your own windows. This is covered in the UI Builder section.

  1. Enter the script name and click OK

A new script will be created.

As an example, copy and paste the following script into the editor for your new script:

    constant meta ="Script by YOUR NAME. http://YOUR_URL"
    
    on Hello
        Alert("Hello World!")
    end
    
    on Load
        InstallMenuCommand("Hello World", "Hello")
    end

Click Activate in the toolbar. Your script is compiled and loaded. Look in the Commands menu and you will find a new command at the bottom called "Hello World".

To Delete an Existing Script

  1. Select the script to Delete by clicking on its name on the sidebar
  1. Click on the Cogs icon on the bottom left of the script window and select Delete Script

You will be asked for confirmation

  1. Click OK to delete the script

To Rename a Script

  1. Select the script to rename by clicking on its name on the sidebar
  1. Click on the Cogs icon on the bottom left of the script window and select Rename Script
  1. Enter the new script name (which must be unique) and click OK

The script will be renamed and deactivated. You will need to reactivate the script if required.

Note: If the script contains a public handler, any other scripts that use that handler will also be deactivated. You will need to alter the handler calls in these other scripts to reflect the new script name.