🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19270

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

#19270
From: Armin.Egginger
Date: Tue, 31 Dec 2002 18:35
22 lines
1999 bytes
Hi,

I try to put some text from FileMaker in a cell from a table. But the textparts are with different character styles. The contents without character styles functions, but with the different styles doesn't function. I tried also "line1 with properties{applied paragraph:"Headline - Company"}". I don't know how this function! Pls help!

tell application "InDesign 2.0.2"
	set myDocument to active document
	set line1 to "the " --the text comes from a filemaker cell
	set line2 to "first " --the text comes from a filemaker cell
	set line3 to "character " --the text comes from a filemaker cell
	set line4 to "style " --the text comes from a filemaker cell
	set line5 to "test" --the text comes from a filemaker cell
	tell table 1 of text frame 1 of page 1 of myDocument
		--set contents of cell 1 to (line1{applied paragraph style: "Headline - Company"} & line2{applied paragraph style:"address"}& line3{applied paragraph style:"boothnumber"}& line4{applied paragraph style:"Headline - Company"}& line5{applied paragraph style:"boothnumber"})
		set contents of cell 1 to (line1 & line2 & line3 & line4 & line5)
	end tell
end tell

The Character styles are available in the InDesign document.

Many Thanks

Armin
Technical Details
Message-ID: <1de72f9e.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.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,38db9d1aa2881abd,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-31 10:38:05 PST
From: Armin.Egginger <armin.egginger@gmx.de>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: set contents of table to text with different character styles (AS)
Message-ID: <1de72f9e.-1@WebX.la2eafNXanI>
Date: Tue, 31 Dec 2002 10:35:26 -0800
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit