Hello Monika,
Thank you so much for the input. Unfortunately, I cannot put that restriction. What I want to know is how to uniquely identify layers when they are having identical names? Illustrator seems to be keeping track of the layers with same name..so wondering there must be some identifier to maintain this information..i need my script to access this information..