join multiple single Indesign files to 1 multipage?

Hi,

I like to script the following: I have a lot of single page Indesign files which I need to join into 1 Indesign file (multipage) as I need to do some corrections which can be done on the masterpage. Without this script I need to open all files seperately and do the corrections…is there anyone who can help?

thnx

kris