Corupted file
- This topic has 0 replies, 1 voice, and was last updated 7 years, 7 months ago by .
- You must be logged in to reply to this topic.
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Corupted file
Learn / Forums / InDesign Add-ons (Scripts, Scripting, and Plug-ins) / Corupted file
This is the file what I have the problem… there is something on page 4 or 5… what immediately opening the file… in-design crashes
this is the file
https://media.mouzenidis-travel.ru/Design/Open/Poland%20Catalogue.indd
I tought if I make some script like this:
// 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,’.inx’))); // Export im IDML-Format
d.close(SaveOptions.NO); // Close without saving
}
whick don’t really open the file… and without showing the file delete automaticaly the page no4 and 5… and after that resaves it… it will fix the problem…
but how to make it?
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies allows us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
To provide the best experiences, we and our partners use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us and our partners to process personal data such as browsing behavior or unique IDs on this site and show (non-) personalized ads. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Click below to consent to the above or make granular choices. Your choices will be applied to this site only. You can change your settings at any time, including withdrawing your consent, by using the toggles on the Cookie Policy, or by clicking on the manage consent button at the bottom of the screen.
You have to be logged in to save.
Not a member? Join Today - it's FREE!