Article View: adobe.scripting.indesign
Article #8696Need help on Merge, AS or JS
From: Janis_Rough
Date: Fri, 29 Sep 2006 13:40
Date: Fri, 29 Sep 2006 13:40
14 lines
2120 bytes
2120 bytes
I'm trying this in AS but if you can do the merge in JS I can switch.
It is a simple operation in real time, pull down automator menu and select data merge. It gives you an option palette to select the source document. Set a few preferences like create documents for a range of records. Then there is the option create merged document. But in applescript it is a whale of another color. The following script is what I want it to do but I can't figure out how to name all of the objects, and references. I already have the placeholder fields in my document so while it is open and I call data merge it should just import the data into the right text boxes.
There aren't really any commands except in the preferences. I can't understand even how to call the data merge. The select data source command is a
command of the data merge preferences. The data merge is a class of the preferences suite. The data source file is a property of the data merge preferences. The data merge options are a class of the preferences suite and a property of the basics suite. This doesn't tell me very much.
Any ideas, encouragement, or direction on where to go?
tell application "Adobe InDesign CS2"
data merge option
select data source "Mac OS X:Users:jrough:desktop:mergeRecordsDoc"
data merge option set parent document = active document
set record number preference to record number = 1
data merge option create new document = t
end tell
Technical Details
Message-ID:
<3bc1d2a2.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,ab314fe314fbbafc,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Janis_Rough@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Need help on Merge, AS or JS Message-ID: <3bc1d2a2.-1@webcrossing.la2eafNXanI> Date: Fri, 29 Sep 2006 06:40:11 -0700 Lines: 28 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit