Creating a new script

To create a new script package for Switch from a blank sheet:

  1. Launch SwitchScripter or, if it is already running, click File > New .
  2. In the Declaration pane, select the first element, i.e. the root element (representing the script as a whole).
  3. In the Properties pane, select the Type of script you want to create:
    • Script (if you want to create a script or a configurator)
    • App (if you want to create a Switch app for the Switch App Store)
  4. Determine the required scripting language(s):
    • Include JavaScript: Yes/No (default value: Yes)
    • Include VBScript: Yes/No
    • Include AppleScript: Yes/No
    See also Selecting a scripting language
  5. Configure the other script declaration properties, including supported connections and injected properties.
  6. The Program pane has been initialized with a template (empty stubs) for the two most important entry points supported by the scripting API. Enter your custom program text inside the function body of the entry point(s) you need, remove the stubs for entry point(s) you do not need and add any other entry points you may need.
  7. Click File > Save script to save your script package with an appropriate name in a location of your choice.
  8. Verify the operation of your script as explained in Testing a script, adjust the script and its declaration as desired and save the final result.