Article View: adobe.scripting.indesign
Article #402Re: JS: CS4 print active document
From: Dave_Saunders
Date: Mon, 23 Mar 2009 19:22
Date: Mon, 23 Mar 2009 19:22
5 lines
959 bytes
959 bytes
You should delete the call to mySetup. myTeardown does nothing so you could delete that too. That leaves you with the call to mySnippet which does exactly the same as the code you wrote because for the purposes of this script, app.activeDocument is the same as app.documents.item(0) which is the same as app.documents[0]. Dave
Technical Details
Message-ID:
<59b860c2.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b860c2.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b00375fe3369de3e X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: JS: CS4 print active document Message-ID: <59b860c2.4@webcrossing.la2eafNXanI> Date: Mon, 23 Mar 2009 12:22:27 -0700 References: <59b860c2.-1@webcrossing.la2eafNXanI> Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit