If a current file open in Script Runner has changes and you select File -> New or File -> Open then it should warn you that you have changes that will be lost. We could also just auto-save like we do when you click Run. I think warning is better in this case.