There are at least three different methods possible. One would be to export the document layout (could be automated with macros) and another would be the use of prj-folders in which everything from a qvw is stored by saving them.
If only the script is relevant than would be a direct reading with a macro probably more sufficient. Here some links what is meant: