🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19131

Delete last character of cell in table -- How?

#19131
From: Dave Saunders
Date: Mon, 20 Jan 2003 20:20
15 lines
1437 bytes
I'm populating a table by moving paragraphs into each cell. But for the life of me, I can't work out how to delete the trailing return in each cell. It surely ought to be easy:

repeat with y from 1 to (Tend-Tstart)
 repeat with x from 1 to count of columns of myTable
  tell cell x of row y of myTable
   try
    delete text of it -- get rid of placeholder text, if present
   end try
   move text of paragraph Tstart of myStory to insertion point 1 of it
   delete character -1 of it
  end tell
 end repeat
end repeat

Everything works except for the deleting of the last character. I've tried delete character -1 of text of it, of character -1 of paragraph 1 of it,
Technical Details
Message-ID: <1de7770b.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!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,111a8899c902bd04,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-20 12:38:36 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!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Delete last character of cell in table -- How?
Message-ID: <1de7770b.-1@WebX.la2eafNXanI>
Date: Mon, 20 Jan 2003 12:20:29 -0800
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit