Applescript: Indesign update link on open


I’m using a indesign file with a data merged .csv already linked in, as I’ve updated the CSV file in an earlier part of my script when I open the Indesign file it shows the ‘update links’ window.

Is there any way to script this to say yes, so It updates the linked CSV? I’ve tried using system events and keystrokes but I can’t get it to work.

many thanks