Article View: adobe.scripting.indesign
Article #1600Re: Relink Data Merge using Find
From: matt_p_stone
Date: Wed, 28 Jan 2009 21:18
Date: Wed, 28 Jan 2009 21:18
14 lines
1174 bytes
1174 bytes
So I found a solution. I put the Data Merge line before the import XML line and the XML (though containing info about the merge fields) did not overwrite the input from the Data Merge.
for(myDocumentCounter = app.documents.length; myDocumentCounter > 0; myDocumentCounter--){
app.activeDocument.dataMergeProperties.mergeRecords();
app.activeDocument.importXML(myXML);
Out of curiosity, why?
And would this be the right path toward the original relink question? What would this be missing.
(find text preferences:{find what:"<<a800number>>"}, relink);
Thanks,
-M
Technical Details
Message-ID:
<59b7b6aa.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b7b6aa.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,7096e33ca88c5ea5 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!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: Relink Data Merge using Find Message-ID: <59b7b6aa.0@webcrossing.la2eafNXanI> Date: Wed, 28 Jan 2009 13:18:17 -0800 References: <59b7b6aa.-1@webcrossing.la2eafNXanI> Lines: 18 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit