How can I get color from Layer texture?

For batch huge texturing task on big scene, I have need to found a MEL script how return to me (in script editor) RGB value of the selected Layer in a Layered Texture node... some poeple know how can I make this?

Thanks in advance.

I drink 3D all morning...
<< http://grain.s.free.fr >>