Import multiple images to multiple materials

Hello everybody,

I have a folder with a lot off images. I want to import these images into the Diffuse Color and Opacity slots. One image for one material.

Is there a way to automate this in a script? Or maybe someone knows a script that can do this?