Article View: adobe.scripting.indesign
Article #2080[JS :: CSX] DataMerge - mergeRecords()
From: Ben_J.D
Date: Thu, 08 Jan 2009 10:16
Date: Thu, 08 Jan 2009 10:16
13 lines
1349 bytes
1349 bytes
Hi folks, I am building a script that uses the mergeRecords() function which is a part of the DataMerge object. This function creates a new document which contains a range of records based on the data of a data merge data set. I have noticed that this new document which the mergeRecords() function creates is created with its showingWindow option set to true. I would prefer this be false. Is there any way to set this option manually. I can not see a showingWindow propert listed for the Document object. The other thing i tried was to close the document window via: app.activeDocument.windows.everyItem().close(); However this produces the error: Can't close last document window. Close the document instead. Does any one know how i might keep this documents window hidden?
Technical Details
Message-ID:
<59b7752e.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,c35c9bd1b218b98f,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Ben_J.D@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: [JS :: CSX] DataMerge - mergeRecords() Message-ID: <59b7752e.-1@webcrossing.la2eafNXanI> Date: Thu, 8 Jan 2009 02:16:42 -0800 Lines: 20 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit