Iterate through a data source, exporting one document per record

Iterate through a data source, exporting one document per record in the panel.

To install this script, navigate to the Adobe InDesign Application Directory and paste the script file into the following folder ‘Scripts -> Scripts Panel’. The script can then be run from the Scripts panel; this is found in ‘Window -> Utilities -> Scripts’.