timed save of active document to its original file

In this post we have a timed backup of the active file to a backup name.

Is there a version to save the document to the same file that it was opened from? For example I have opened a.odt and have made changes to the document that I have not manually saved.

Now instead of creating a.odt.backup., the system writes to a.odt.

If there is no such version: For macro gurus, how could this macro be modified to this requirement?

Isn’t this the description of a periodic File>Save action?

I have never written a macro, thus I don’t know if a periodically activated macro is possible. If yes, it should be pretty simple.