Article View: adobe.scripting.indesign
Article #9091InDesign & Applescript Data Merge
From: Matt_UK
Date: Fri, 15 Sep 2006 15:07
Date: Fri, 15 Sep 2006 15:07
36 lines
1706 bytes
1706 bytes
Hi, I'm trying to get an applescript to run to create a new doc using data merged from a csv. The datamerge works fine if I do it manually, but I can't get it to work using applescript. Here's my effort so far... tell application "Finder" open document file "myfile.indd" --set data file path set myDataFile to "mycsv.csv" tell application "Adobe InDesign CS2" set myDocument to active document tell data merge options set remove blank lines to true set link images to true set create new document to true set fitting option to proportional end tell tell data merge properties of myDocument select data source data source file myDataFile end tell merge records end tell end tell The script seems to crash on select data source, with error message: Adobe InDesign CS2 got an error: data merge properties of document "..." doesn't understand the select data source message. Any ideas much appreciated. Cheers, Matt.
Technical Details
Message-ID:
<3bc1a31f.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news.isoc.lu!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,8823e5c7ab5cdfc0,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Matt_UK@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news-out1.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: InDesign & Applescript Data Merge Message-ID: <3bc1a31f.-1@webcrossing.la2eafNXanI> Date: Fri, 15 Sep 2006 08:07:19 -0700 Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit