If I understand your question correctly, there isn't a way to automate the scripting of a certain process in similar way to recording a macro or recording the steps. There used to be a Record Script or Generate Script feature that may have been completely separate and only available back in VSP 2. No such feature or process is distributed at present.
Generally, the best way to begin scripting is to look at the examples in the "scripts" directory of your OpenVSP storage location. Quite a lot of what you need to get started can be learned by reading through the files there. For more specific applications, the
OpenVSP Python API documentation has an _extensive_ library of functions available which generally have a one-to-one relationship with the AngelScript version, barring some syntax differences.
Technically, you could build VSP yourself with the connection to some program that reads all of the function calls and records them in a "script" but to be honest it likely wouldn't write in AngelScript which means VSP can't execute it outright. Furthermore, this process produces lots of unnecessary steps which makes the script inefficient. For example, each time you move the camera view is recorded as an action; or if you perform a step in the process that you need to back out of.
It is generally best practice to script specific processes that are repeated and robust to change. For more complex automation, we recommend using the Python API.
Cheers.