Article View: adobe.scripting.indesign
Article #1176Re: [JS CS4] Why is this If Else test not working?
From: Dave_Saunders
Date: Wed, 18 Feb 2009 19:08
Date: Wed, 18 Feb 2009 19:08
7 lines
867 bytes
867 bytes
Instead of sending it to an alert, insert it into an empty InDesign text frame and then see what appears. Assuming you prime an insertion point before running your script, all you have to do is replace the alert with: app.selection[0].contents = myReport; Dave
Technical Details
Message-ID:
<59b7f983.4@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b7f983.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d713958badc61099 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS CS4] Why is this If Else test not working? Message-ID: <59b7f983.4@webcrossing.la2eafNXanI> Date: Wed, 18 Feb 2009 11:08:39 -0800 References: <59b7f983.-1@webcrossing.la2eafNXanI> Lines: 9 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit