This doesn't seem too hard, setup a watcher for scene notifications and trigger a save if the autosave property is set.