Refs #2535 Rework script window loading
Merge branch 'feature/2535_improve_script_saving' into develop