I have a file that I use as a base. But when it opens Indesign starts searching for 164 linked files. That takes a lot of time. The thing is, that there are just 17 linked images in that file. Why does Indesign searches for those files and where can I see the links? I have no error message once its opened. I tried to unlink all images, but it doesn't help. What can I do?
Save the IDML as INDD on the same place. Is the problem still a problem?
Look into the Link Panel. Are images embedded? Avoid this.
If that does not help: create a new document with the same paper size, same baseline grid, no styles (paragraph, character, table, cell, object) and 2 initial pages. In the old document: Menu > Layout > Move pages … (all) to the new document. Delete the 2 initial pages.
alert( app.documents.links.length );
Copy the code to a text file without formatting, save with the file extension *.jsx, place it in the User folder of the InDesign Scripts panel. You can open that User folder in the file system by using the menu command "Reveal in Finder" when you selected the User folder in the Scripts panel.