Running a Script
You can use scripts to operate the IDE in one of two ways:
- Execute single scripted commands
- Execute a scripted file
To run a single scripted command:
- Choose View
Scripting Console.
- Select a scripting language from the Scripting Language combo box
in the console window.
- Type your scripted commands in the text field.
- 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:
- Choose File
New.
- Click on the Script node in the New from Template wizard.
- Select one of the scripting languages and click Next.
- 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.
Legal Notices