Article View: adobe.scripting.indesign
Article #617Re: Close all documents
From: xbytor
Date: Tue, 10 Mar 2009 14:13
Date: Tue, 10 Mar 2009 14:13
3 lines
811 bytes
811 bytes
Loop through the array backwards if you are removing elements from it.
> for (var i=app.documents.length-1; i >= 0; i--) { app.documents[i].close(SaveOptions.no); }
Technical Details
Message-ID:
<8881D603B5B81B70525243E2C9AB00CE@in.webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b82bd9.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,bedace1126cd858f X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: xbytor@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Close all documents Message-ID: <8881D603B5B81B70525243E2C9AB00CE@in.webcrossing.la2eafNXanI> Date: Tue, 10 Mar 2009 07:13:30 -0700 References: <59b82bd9.-1@webcrossing.la2eafNXanI> Lines: 4 User-Agent: Thunderbird 2.0.0.19 (Macintosh/20081209) MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit