🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15690

Adding a column within a table

#15690
From: Dave_Saunders
Date: Thu, 20 Nov 2003 21:38
12 lines
1068 bytes
Once again I bang my head against the inscrutable.

I have a table, three columns by n rows. I wish to add a column between the first two columns. It is more convenient to think of this as "Before the second" than "after the first", so:

myTable=app.documents[0].textFrames.item('Target').tables[0];
myTable.columns.add(LocationOptions.before,myTable.columns.item[1]);

gives bad argument for the second line.

So how does one indicate a column in that second argument?

Dave
Technical Details
Message-ID: <2cce81b1.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,620333df8eace87c
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-20 14:08:31 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Adding a column within a table
Message-ID: <2cce81b1.-1@webx.la2eafNXanI>
Date: Thu, 20 Nov 2003 13:38:07 -0800
Lines: 14
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit