Skip to main content
Participant
November 2, 2015
Answered

Is it possible to Close All without Saving?

  • November 2, 2015
  • 1 reply
  • 1661 views

Of course I can do Control-Alt-W (WINDOWS) to close all but the pop-up Save? dialog interrupts my rhythm and I need a script that allows me to Close All -> No Save. I have tried an Action where I record the "No" (with option) to attempt to get it to say No on each one, but it does not record that part, only the Close All.

This topic has been closed for replies.
Correct answer Silly-V
#target illustrator

function CloseAllWithoutSaving(){

     for(var i=app.documents.length-1; i>-1; i--){

          app.documents[i].close(SaveOptions.DONOTSAVECHANGES);

     };

};
CloseAllWithoutSaving();

 

callofjuarez6_1433513c.jpg

1 reply

Silly-V
Silly-VCorrect answer
Legend
November 2, 2015
#target illustrator

function CloseAllWithoutSaving(){

     for(var i=app.documents.length-1; i>-1; i--){

          app.documents[i].close(SaveOptions.DONOTSAVECHANGES);

     };

};
CloseAllWithoutSaving();

 

callofjuarez6_1433513c.jpg

Participant
November 2, 2015

THANK YOU !!!

Silly-V
Legend
November 2, 2015

goodbye.jpg