Script Editor
Hidden by default, the Script Editor can be opened with View > Script Editor and is located at the bottom of the Sources window. When displayed, it allows a script to be edited and tested efficiently without having to type it in the Console each time. Scripts can also be loaded from a file by using the Load button.
To use the Script Editor, press the Execute button to run the script and the Console will display the results if the script prints anything. While the editor has focus, Alt-Enter will execute the script as well.