🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17165

Re: Merge table cells across selection [AS]

#17165
From: Jay Fraser
Date: Thu, 26 Jun 2003 20:03
20 lines
1404 bytes
This seems to work:



tell application "InDesign 2.0.2" 
	set myTable to parent of selection 
	tell myTable 
		repeat with i from 1 to (count columns) 
			set myFirstCell to i & ":1" as text 
			set mySecondCell to i & ":2" as text 
			merge (cells myFirstCell thru mySecondCell) 
		end repeat 
	end tell 
end tell



It assumes you have one or more cells selected in the table you want to affect. Effect? I always get those confused.

If you want it to be less picky about what you have selected, I can work on that, maybe tomorrow because I just got busy. (yippee!)
Technical Details
Message-ID: <1de9b268.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!newspeer.radix.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9b268.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,fee4b0975e1fe1f6
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-26 13:07:47 PST
From: "Jay Fraser" <jayfraser@yahoo.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!216.170.153.135.MISMATCH!tdsnet-transit!newspeer.tds.net!newspeer.radix.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Merge table cells across selection [AS]
Message-ID: <1de9b268.0@WebX.la2eafNXanI>
Date: Thu, 26 Jun 2003 13:03:41 -0700
References: <1de9b268.-1@WebX.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit