I have a script that moves the art file of the selected frame to a folder.
Everything works great except that I can't seem to get InD to refresh the link status without changing the page that's being displayed making the screen jump.
I've tried changing the view from typical to optimized with the scripting preferences refresh on but nothing's worked.
see the following thread where I posted an ExtendScript script snippet using method relink() on all links of a document.
Every link is relinked with the file it's pointing to. Could be worth a try…