When I try the following script within InDesign, it still opens the corrupt file, then does the normal crashing.
I tried running the script on software program AdobeExtendScript Toolkit, and when I run the script it states: "app.open is not a function"
Should we change anything to the script below?
// blindOpen_and_IDML-Export.jsx
var _file = File.openDialog("InDesign-Datei"); // Selection of a file
if(_file != null)
{
var d = app.open(_file, false); // Open the file without showing it
d.exportFile(ExportFormat.INDESIGN_MARKUP, File(_file.fullName.replace(/.indd$/i,'.idml'))); // Export im IDML-Format
d.close(SaveOptions.NO); // Close without saving
}