If you are done with a script, select File, Close from the menu. If the script has changed, you will be asked if you want to save your changes first. This question is to make sure you do not throw away your work by mistake. Answer Yes to save your changes.