🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8371

Re: Word doc table into Indesign table blues

#8371
From: Shane_Stanley
Date: Mon, 16 Oct 2006 01:23
19 lines
1353 bytes
It looks like there are some potential quirks of Word tables the script didn't take into account. So try this:

tell application "Microsoft Word"
	set cellContentsList to {}
	set cellCount to count of cells of selection
	repeat with i from 1 to cellCount
		set end of cellContentsList to content of text object of cell i of selection
	end repeat
end tell
-- put them in the table
tell application "Adobe InDesign CS2"
	set contents of selection to cellContentsList
end tell

To use it, select the relevant table areas in Word and InDesign, then run the script (no need to copy or paste).

To install the script in your Scripts palette, save the script from Script Editor in the Scripts folder inside InDesign's Presets folder.

Shane
Technical Details
Message-ID: <3bc1f953.11@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing
References: <3bc1f953.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,44638fa60e8619f
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Shane_Stanley@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: Word doc table into Indesign table blues
Message-ID: <3bc1f953.11@webcrossing.la2eafNXanI>
Date: Sun, 15 Oct 2006 18:23:09 -0700
References: <3bc1f953.-1@webcrossing.la2eafNXanI>
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.stben.net!webcrossing