Copy link to clipboard
Copied
HI All,
Recently i faced a problem when opening an Indesign document. It shows the below error message. Any one please explain why it comes?
I aware we can export the file as idml or inx will fix the problem.
Is it possible to detect this kind of indesign document through javascript?
Regards,
Karthi
Copy link to clipboard
Copied
Hello Experts,
Any suggestions or advice please.
Regards,
Karthi
Copy link to clipboard
Copied
> Is it possible to detect this kind of indesign document through javascript?
No, that's almost certainly impossible.
Copy link to clipboard
Copied
Hi Peter,
Thanks for your reply. May i know why it comes? Is it the document corrupted? but even it's opened!!
Can we use try, catch method to identify this?
Regards,
Karthi
Copy link to clipboard
Copied
What do you want to catch? What statement would you use to find the problem? You don't know what you're looking for. And even if you did, InDesign's object model doesn't provide anything for low-level access to document features.
P.
Copy link to clipboard
Copied
Hi Peter,
I have 10 indesign document in a folder. I want to know which file give this error message. So if i give the error description as "Document contains an invalid frame." then i will get the indesign document name.
try{
}
catch(err){
if(err=="TypeError: Document contains an invalid frame."){
alert(app.activeDocument.name)
}
Thanks,
Karthi
Copy link to clipboard
Copied
Hi,
Anyone please help me regarding the above issue.
Regards,
Karthi
Copy link to clipboard
Copied
Interesting one but clueless unfortunately. Apart from the message does the preflight panel raises the issue ?
In this case, you may take advantage of the preflight reports ?
FWIW,
Loic
Find more inspiration, events, and resources on the new Adobe Community
Explore Now