i got a script that runs fine on windows but runs only once on OSX and crashes on every following try till InDesign Server is restarted.
Note that indesign-xml.tmp is not a filename my script uses but seems to get created by InDesign Server (and never closed?)
Fehlerzeichenfolge: In die Datei "indesign-xml.tmp" kann nicht gespeichert werden, da sie bereits geöffnet ist.
(rough translation: the file "indesign-xml.tmp" can't be saved, because it is already opened)
the Line of Code that causes the Problem:
myXmlElement.exportFile(ExportFormat.XML, filename); // filename gets randomly generated so it is not indesign-xml
Version of InDesign Server:
CC2017 - OSX
Has anyone else encountered this Problem before?
The export is only used to stringify an already existing XmlElement. is there maybe a better way to do so?
Thanks a lot in advance
Have you tried with another indd dummy file ? Another XMLElement in the collection?
Worst case scenario, you could have a look at a preexisting indesign-xml.tmp file and remove it prior to export but that's dirty.
Best would be to introspect the context of the error.
thank you for your reply. yes, i tested multiple InDesign Files and therefore multiple XML Collections, still the problem persists.
The Script runs successfully the first time after the restart of InDesign Server, but then keeps crashing because of this error.
i tried various command line tools to find this "indesign-xml.tmp" file or the program that has opened it but without any success.
Does anyone know where this file is written to on OSX?