Have you created the profile name called "IMAGE_CHECK" in InDesign.
Can you post the error for reference.
I have the same issue. My guess is that there is a bug in ID that makes PreflightProcess.saveReport() fail.
I think that this is what is happening:
Is it possible to get a comment from Adobe?
I'm running ID CS6 on mac BTW.
@Magnus – the code the OP is providing at the start of this thread is working for me.
InDesign CS5.5 on Mac OSX 10.6.8.
InDesign CS6 on Mac OSX 10.6.8.
Could there be something like a "timeout" problem with bigger InDesign files?
I tried running the script again and this time it worked. Previously, I got the same error as the OP. I do not know what has changed or why it works now but not before. I'll investigate further and post if I figure out anything more.
Thanks for you help!
the fix for me was (testet on InDesign CS6 8.0.2) to replace the followin line in the ExportPreflightReport.jsx script.
//for(n = 0; n < arguments.length; n++) params[arguments[n]] = arguments[n];
for(n = 0; n < this.arguments.length; n++) params[this.arguments[n]] = this.arguments[n];
And if you want to use the script on a IndesignServer you need to replace also to following line:
it is near line 290 in the "CreateWorkingDoc" function
//var doc = app.open(templateFile, false); // No window (don't want user seeing the doc building)
var doc = app.open(templateFile); // in IDS you need only one Paramater