InDesign - auto update links of files in a folder?

I am pretty new to scripting so bear with me - How can you use Applescript to tell InDesign CS to automatically fix the links when opening a document?