🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8608

Re: Need help on Merge, AS or JS

#8608
From: Shane_Stanley
Date: Sat, 30 Sep 2006 08:08
26 lines
2060 bytes
I've never played with this before, but I can see why you're confused. It
looks a bit of a mess.

The data source is set when you make the template; I can't see any way to
change it (or even find its path) via script.

To set up the merge parameters and do the actual merge, use something like
this:

tell application "Adobe InDesign CS2"
    tell document 1
        set properties of data merge options to {center image:true, link
images:true, create new document:true} --etc
        set properties of data merge properties to {record range:"1-2",
records per page:single record} --etc
        merge records data merge 1
    end tell
end tell

There appears to be only one data merge object in a document, and it seems
to be a class that only exists for the merge records command. Yuck.

Anyway, I hope this gets you closer to what you want...

-- 
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <C144630B.308BD%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc1d2a2.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,ab314fe314fbbafc
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Need help on Merge, AS or JS
Message-ID: <C144630B.308BD%sstanley@myriad-com.com.au>
Date: Sat, 30 Sep 2006 01:08:11 -0700
References: <3bc1d2a2.-1@webcrossing.la2eafNXanI>
Lines: 33
Received: from bld-mail01.adl2.internode.on.net [203.16.214.65] by adobeforums.com; Sat, 30 Sep 2006 01:08:15 -0700
Received: from [192.168.1.2] (unverified [59.167.75.174])  by mail.internode.on.net (SurgeMail 3.2f) with ESMTP id 237038958  for <adobe.scripting.indesign@adobeforums.com>; Sat, 30 Sep 2006 17:38:14 +0930 (CST)
Return-Path: <sstanley@myriad-com.com.au>
User-Agent: Microsoft-Entourage/11.2.5.060620
Thread-Topic: Need help on Merge, AS or JS
Thread-Index: AcbkZ5IR0Mr+zlBaEduWAgARJHm3nA==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit