Article View: adobe.scripting.indesign
Article #16906Re: Insert Table into InDesign-Document (AS)
From: Dave Saunders
Date: Thu, 17 Jul 2003 11:40
Date: Thu, 17 Jul 2003 11:40
17 lines
1760 bytes
1760 bytes
Dieter, Have you looked at the InDesign AppleScript Dictionary? The raw information you need is in there. Indeed, one of the properties of a cell is its contents, so Oli has actually answered your question for that particular property in his script. If you want to affect the look of the text in the cells then you need to operate on that text not on the cell itself: set cellText to parent story of text of cell j of row i of myTable set cellTextRef to item 1 of cellText set applied paragraph style of paragraph 1 of cellTextRef to paragraph style "CellLeft" of document 1 That second statement is needed because the first returns a list of one item and it's that item that is the actual reference. I notice that Oli has put his contents setting inside a "tell myTable" construct. I don't think that that is necessary (and I'm surprised it works) because the set contents command also references myTable. Dave
Technical Details
Message-ID:
<1de9f22f.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!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-7-bit X-Google-Thread: f939a,bbe268284038525 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-17 05:07:48 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-05!sn-xit-09!supernews.com!news-out.visi.com!petbe.visi.com!skynet.be!skynet.be!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.2@WebX.la2eafNXanI> Date: Thu, 17 Jul 2003 04:40:13 -0700 References: <1de9f22f.-1@WebX.la2eafNXanI> Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit