🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18616

Re: Automatic document creation....

#18616
From: Shane Stanley
Date: Thu, 06 Mar 2003 21:40
25 lines
1736 bytes
in article 1de82b86.-1@WebX.la2eafNXanI, SpeeD72 wrote:

> Im uding Indata for dumping records of a data base into Indesgin. The problem
> is that the DB is 3000 records long, wich record contains 10 pages. I need a
> script that automatize the processe of save/creation of a document.

I'm not sure what your problem (or platform) is, but you can script InData
like this:

set idPath to "Macintosh HD:The ID file"
set dataPath to "Macintosh HD:The data"
tell application "InDesign 2.0.2"
 open idPath
 with timeout of 10000 seconds
  import data from file (alias dataPath) into story inDataStoryName using
prototype story inDataPrototypeName starting with record 1
 end timeout
 save document 1 in (idPath & " done")
 close document 1 saving no
end tell

Perhaps you can explain exactly what you need.

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BA8E0B74.50AC8%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de82b86.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,bd71a0f9f0c02c19
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-06 14:08:00 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Automatic document creation....
Message-ID: <BA8E0B74.50AC8%sstanley@myriad-com.com.au>
Date: Thu, 6 Mar 2003 13:40:21 -0800
References: <1de82b86.-1@WebX.la2eafNXanI>
Lines: 30
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit