🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16154

Re: [VB]Programmatically change a Character color of Paragraphstyle at Runtime

#16154
From: Olav_Kvern
Date: Fri, 03 Oct 2003 23:07
15 lines
1428 bytes
Sean--

While the ParaStyle object itself is read-only (which means that ParaStyles are either manipulated with various methods and are edited as individual ParaStyle objects), the properties of each ParaStyle object are (usually) read/write.

Next, ChangePreferences is a member of the Application object--it's not on the ParaStyle. In addition, you're working on an application Default ParaStyle (myID.ParaStyles.Item("UniqueKey"))--you probably want myDoc.ParaStyles.Item("UniqueKey"). I think what you want is something like this:



Set myDoc.ParaStyles.Item("UniqueKey").FillColor = myDoc.Swatches.Item("Paper")



Thanks,

Ole
Technical Details
Message-ID: <2ccda33b.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccda33b.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b3edf2ae80bd2a6b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-10-03 16:38:40 PST
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB]Programmatically change a Character color of Paragraphstyle at Runtime
Message-ID: <2ccda33b.0@webx.la2eafNXanI>
Date: Fri, 3 Oct 2003 16:07:37 -0700
References: <2ccda33b.-1@webx.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit