Open data source and output contents of a named field

Open a data source, create a view for it and then output to the JavaScript console the contents of a named field.

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’.