Get Bitmap Name from deffusemap in 3DS7


I am searching for hours for a script snippet which will give me the name of the used diffuse bitmap Texture map.
I need help for max 7
i want to make a script which will set a self illumitation texturemap automaticly.

Thanks for your help