Illustrator freezes when runs in a loop for 500 times. So inside loop only I am adding the document, saving to the disk and close the docume
Illustrator freezes when runs in a loop for 500 times. So inside loop only I am adding the document, saving to the disk and close the document
Here is the code
for(var i=0;i<500;i++){
var doc = app.documents.add();
doc.saveAs(File('~/Desktop/Test'+(i+1)))
doc.close();
}
Run, this code and you will never able to create 500 documents. I use automation a lot and in one go I have to loop over 1000 documents that have graphics inside it. BUt here in sample cript I am not doing nothing just crating 500 documents without any graphics, still Illustrator frezees.
I have attached the screenshots for memory usage. It reaches upto 6GB
-
Charu commented
Illustrator freezes when runs in a loop for 500 times. So inside loop only I am adding the document, saving to the disk and close the document
Here is the code
for(var i=0;i<500;i++){
var doc = app.documents.add();
doc.saveAs(File('~/Desktop/Test'+(i+1)))
doc.close();
}
Run, this code and you will never able to create 500 documents. I use automation a lot and in one go I have to loop over 1000 documents that have graphics inside it. BUt here in sample cript I am not doing nothing just crating 500 documents without any graphics, still Illustrator frezees.I have attached the screenshots for memory usage. It reaches upto 6GB