Article View: adobe.scripting.indesign
Article #1720Data Merge Don't Create Copy/New Document
From: matt_p_stone
Date: Tue, 27 Jan 2009 23:16
Date: Tue, 27 Jan 2009 23:16
10 lines
1058 bytes
1058 bytes
I modified a script that performs a Data Merge. Everything works great, but it creates a new document (which is inherently what happens if you Data Merge manually). Is there anyway to not create a new document?
This is what I am using:
var selectDataSource = "Data Merge: *.txt";
var myDataSource = File.openDialog("Select Data Source");
app.activeDocument.dataMergeProperties.selectDataSource(myDataSource);
app.activeDocument.dataMergeProperties.mergeRecords();
Thanks for any help.
Technical Details
Message-ID:
<59b7b42b.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,b884b32b27d864ee,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: matt_p_stone@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Data Merge Don't Create Copy/New Document Message-ID: <59b7b42b.-1@webcrossing.la2eafNXanI> Date: Tue, 27 Jan 2009 15:16:17 -0800 Lines: 12 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit