🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8146

write formatted text cs2 vb

#8146
From: Robert Tkaczyk
Date: Wed, 01 Nov 2006 21:01
17 lines
1288 bytes
> im confused, you could just set the paragraph styles on the text, why does that not work for you? textframe.contents

TextFrame.Contents can't "get" Char/Para Style ;)

TextFrame.ParentStory.Paragrphs.Item(1).AppliedParagraphStyle = 
myDoc.ParagraphStyles.Item("one")

this could be shorten:

TextFrame.Item(1).AppliedParagraphStyle = myDoc.ParagraphStyles.Item("one")

but first version is safer ;)

robin

-- 
www.adobescripts.com
Technical Details
Message-ID: <A9ADB1EE8EBA19468C0365A7B6B3EAFD@in.webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
References: <3bc225e1.-1@webcrossing.la2eafNXanI> <3bc225e1.0@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2303b69da1dc0245
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Robert Tkaczyk <indesignscripts@wp.pl>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news4.google.com!news2.volia.net!news.musoftware.de!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: write formatted text cs2 vb
Message-ID: <A9ADB1EE8EBA19468C0365A7B6B3EAFD@in.webcrossing.la2eafNXanI>
Date: Wed, 1 Nov 2006 13:01:45 -0800
References: <3bc225e1.-1@webcrossing.la2eafNXanI> <3bc225e1.0@webcrossing.la2eafNXanI>
Lines: 19
User-Agent: Thunderbird 1.5.0.7 (Windows/20060909)
X-Antivirus: avast! (VPS 0644-4, 2006-10-31), Outbound message
X-Antivirus-Status: Clean
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit