Running a Script

You can use scripts to operate the IDE in one of two ways:

To run a single scripted command:

  1. Choose View and choose Scripting Console.
  2. Select a scripting language from the Scripting Language combo box in the console window.
  3. Type your scripted commands in the text field.
  4. Select a line of text in the text field and click Execute to run the command. If no line of text is selected, clicking Execute runs the current line of text.

    Click Evaluate to evaluate an expression. The value returned is pasted to the editor.

To run an entire script file:

  1. Choose File and choose New.
  2. Click on the Script node in the New from Template wizard.
  3. Select one of the scripting languages and click Next.
  4. Provide a class and package name in the Target Location panel of the wizard and click Finish.

You can then type your script in the Source Editor window.

See also
Adding a Scripting Language

Using Scripting Languages

Legal Notices