🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16909

Re: Insert Table into InDesign-Document (AS)

#16909
From: Dave Saunders
Date: Thu, 17 Jul 2003 12:35
19 lines
1541 bytes
Oli,

My surprise is that you are using references to myTable inside a tell myTable construct.

You say:

tell myTable
 [snip]
  set contents of cell j of row i of myTable to ((i as string) & "-" & j as string)
 [snip]
end tell

So that ought to expand to   set contents of cell j of row i of myTable of myTable to ((i as string) & "-" & j as string)
   
I didn't actually try it, so I don't know if it works or not, but the tell myTable construct is not necessary if you're going to include the reference to myTable in the command.

In this new script, you don't do this lower down and that is probably the better way of working.

Dave
Technical Details
Message-ID: <1de9f22f.4@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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:37:42 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-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!newsgate.cistron.nl!news.tele.dk!news.tele.dk!small.news.tele.dk!lnewspeer01.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.4@WebX.la2eafNXanI>
Date: Thu, 17 Jul 2003 05:35:06 -0700
References: <1de9f22f.-1@WebX.la2eafNXanI>
Lines: 25
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit