🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19343

Re: set contents of table to text with different character styles (AS)

#19343
From: Armin.Egginger
Date: Fri, 03 Jan 2003 23:31
20 lines
1603 bytes
Thanks Shane,

I did the way you write. I want to share the small part from the script for other beginners.

tell application "InDesign 2.0.2"
	set myTable to table 1 of text frame 1 of page 1 of myDocument
	tell myTable
--you can set line and cell number with variable-number
		set properties of line 1 of cell 1 to {applied character style:"yourStylename"}
		set properties of line 2 of cell 1 to {applied character style:"yourStylename"}
		set properties of line 3 of cell 1 to {applied character style:"yourStylename"}
		set properties of line 4 of cell 1 to {applied character style:"yourStylename"}
		set properties of line 4 of cell 1 to {applied character style:"yourStylename"}
		set properties of every text of cell 2 to {applied character style:"yourStylename"}
	end tell
end tell

happy filemaking

Armin
Technical Details
Message-ID: <1de72f9e.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de72f9e.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,38db9d1aa2881abd
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-03 15:38:14 PST
From: Armin.Egginger <armin.egginger@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: set contents of table to text with different character styles (AS)
Message-ID: <1de72f9e.1@WebX.la2eafNXanI>
Date: Fri, 3 Jan 2003 15:31:05 -0800
References: <1de72f9e.-1@WebX.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit