Article View: adobe.scripting.indesign
Article #16904Re: Insert Table into InDesign-Document (AS)
From: Olivier Berquin
Date: Thu, 17 Jul 2003 06:42
Date: Thu, 17 Jul 2003 06:42
28 lines
1513 bytes
1513 bytes
Hi Dieter,
I write this little example. Please, try it. You can place your data from FileMaker with the loop at the end of the script.
set myColumns to 7
set myRows to 3
tell application "InDesign 2.0.2"
tell page 1 of document 1
set myTextFrame to make text frame with properties {geometric bounds:�
{"10 mm", "10 mm", "60 mm", "110 mm"}}
tell myTextFrame
set myTable to make table with properties {row count:myRows, column count:myColumns}
end tell
tell myTable
repeat with i from 1 to myRows
repeat with j from 1 to myColumns
set contents of cell j of row i of myTable to ((i as string) & "-" & j as string)
end repeat
end repeat
end tell
end tell
end tell
Hope that help !
Oli.
Technical Details
Message-ID:
<1de9f22f.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de9f22f.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,bbe268284038525 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-17 00:07:37 PST From: "Olivier Berquin" <olb@microscript.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Insert Table into InDesign-Document (AS) Message-ID: <1de9f22f.0@WebX.la2eafNXanI> Date: Wed, 16 Jul 2003 23:42:04 -0700 References: <1de9f22f.-1@WebX.la2eafNXanI> Lines: 32 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit