I'd like to run the script wheneven the InDesign file opening i.e., InDesign will be opened always, only the files will be closed and opened?
Please give your valuable response or any suggestion.
It sounds like maybe you want to use an AFTER_OPEN event listener. There's a section about events in the scripting guide and some code samples in the sample scripts.
Retrieving data ...