• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Is it possible to Close All without Saving?

New Here ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

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.

TOPICS
Scripting

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Nov 02, 2015 Nov 02, 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

Votes

Translate

Translate
Adobe
Valorous Hero ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

#target illustrator

function CloseAllWithoutSaving(){

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

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

     };

};
CloseAllWithoutSaving();

 

callofjuarez6_1433513c.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

THANK YOU !!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 02, 2015 Nov 02, 2015

Copy link to clipboard

Copied

goodbye.jpg

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 21, 2021 Apr 21, 2021

Copy link to clipboard

Copied

Shouldn't:

app.documents.close(SaveOptions.DONOTSAVECHANGES);

be:
app.
activeDocument.close(SaveOptions.DONOTSAVECHANGES);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Apr 21, 2021 Apr 21, 2021

Copy link to clipboard

Copied

LATEST

It's cause a forum migration messed up the code snippets on here, the code should be (and I fix these as users point these out, there's 1000s) :

 

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines