I'm new her at InDesign-Scripting-Forum, but I have a great problem, and hope there is somebody out who can help me:
My problem is that InDesign won't close files which have been opened.
// Open the file
// Close the file
if(app.documents.length > 0)
alert("Still " + app.documents.length + " files opened");
InDesign will open the file (1.indd), and closes the file, and no alert will appear.
run this script on InDesign Startup,the alert will appear.
If you are running the script in a loop, just like working with 10 files of a current directory,
InDesign will show alert of 10 opened files at the end.
So.. at the end of the script, I want to move the (opened and closed) file to another directory.
But when InDesign "says" the file is opened, I cannot move or rename the file.
Can anybody help me, so that I can close the file, or that InDesign will close the file
when running as a "startup-script"?
Thanks very much.