Swapping images in indesign

Hi,

I\'m trying to replace images within Indesign documents with a different set of images. 

Example:

       I have all the original images used in indesign stored in a folder called original and i have the alternate images stored in a folder called new.

i have a text file that contains the details of the image that must be replaced

example:
image1.tiffphoto1.tiff
image6.tiffshoes.tiff
imagebell.tiffphotobell.tiff
…etc

I\'d like to write a script that replaces the images within indesign according to the text file.

I\'m new to applescript and i do not know much of indesign either. So any help would be appreciated

Thanks in advance