Copy link to clipboard
Copied
hi every body, i have a question, during a script who open document list, and update each link by recursion, for finish to export to pdf , i have a strange problem, and i try to isolate where is it
if i select a big folder with lot of sub folder and arround 70 file need to be updated
my script turn with visual code, without any arror and never stop
indesgin crash 9/10, and every time on the same file. and i feel it crash during exportto pdf function
this crashed file is arorund 60/70 position file, mean befor it , 59 file war exported with success.
and other test, if i choose only the folder contain 10 file need to be updated
this file will not crash indesign
my loop is include into
try{}
catch(err){
alert(err.line+" => "+err.message);
}
Copy link to clipboard
Copied
$.writeln(err.line + " =>" + err.message);
Copy link to clipboard
Copied
thanks i will test
Copy link to clipboard
Copied
Hi @laurence roussel12011930, to troubleshoot this, add a line into your loop that logs the counter and the document name.
$.writeln('i = ' + i + ' document.name = ' + document.name);
This will hopefully tell you if (a) it is crashing Indesign on a particular document, or (b) if it is crashing Indesign after a number of iterations. As soon as you find out that the crash happens always at a particular document you can investigate that document further by isolating it in a folder by itself.
- Mark
Copy link to clipboard
Copied
thanks, will test soon, but very strange because if isolate = no problem, if in small group= no problem, if in big group = crash