Any book which i can refer to get better understanding of extend java scripting for adobe applications e.g.
my recommendation is: http://www.kahrel.plus.com/indesignscripts.html
Here's a list of links for beginners.
Here are more advanced scripting resources.
Retrieving data ...