Indesign Data Merge

Is there a way to script the Indesign Data merge function. I have an Indesign catalog style document, I know I can create a multi-paged date merge file but I need to use the layout that I created and have it flow across spreads. Is this even possible or should I try to find some other way to merge text and photos on to a spread. Thank you

Tri GUI scripting. UI Broswer will help work it out.