Article View: adobe.scripting.indesign
Article #567Scripting with Data Merge to use Merged Data as File Name
From: Matthew_Lehrer
Date: Mon, 16 Mar 2009 03:12
Date: Mon, 16 Mar 2009 03:12
18 lines
1436 bytes
1436 bytes
I am looking to create a script that will allow the creation of a single PDF file per record in the data source with the name of the resulting file contained in the data source. For example, given the following data table in Excel: First_Name Last_Name ResultingFileName George Smith c:\GS.pdf Mary Lopez c:\mlopez.pdf Steve Barns c:\SteveBarns.pdf After a data merge and running the newly created script, I would end up with three different .pdf files: c:\GS.pdf which would contain George and Smith in their respective text boxes. C:\mlopez.pdf which would contain Mary and Lopez in their respective text boxes. Etc� My goal is to have the original data source contain the resulting document name. I am using the �Record Limits Per Document� to 1 so that I create a new document per record in the data source. Any help would be greatly appreciated.
Technical Details
Message-ID:
<59b83812.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,3491cea7f1882846,start X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII From: Matthew_Lehrer@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Scripting with Data Merge to use Merged Data as File Name Message-ID: <59b83812.-1@webcrossing.la2eafNXanI> Date: Sun, 15 Mar 2009 20:12:39 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit