SaveOnPlay

Paste the script into a file named SaveOnPlay.cs under a folder named Editor, e.g. Assets/Editor/SaveOnPlay.cs. Click play, the debug message appearing before your scene runs is a sign the save worked.