🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18801

Re: indesign-scripting : Style Creation

#18801
From: Olav Kvern
Date: Tue, 18 Feb 2003 20:24
11 lines
1560 bytes
Laurent--

Yes, you have to get and set each property of the object to copy the style from one document to another. (Actually, you could use TLBINF.DLL to avoid listing all properties, but it would be way more complicated.)

With character styles, you have to remember that properties will sometimes have a value (e.g., a font reference for the AppliedFont) and sometimes will not--character styles are rarely complete formatting definitions. Character styles record only that formatting which differs from the base formatting of the text. When an attribute in a character style is blank, it's not a long, but an enum: idNothing, or decimal value 1851876449.

I'll post an example function that does what you want in a bit.

Thanks,

Ole
Technical Details
Message-ID: <1de7e78f.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <3E5245FF.9050807@comidoc.fr>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,a7f74efca9b23c0b
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-18 12:38:10 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-06!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!iad-peer.news.verio.net!news.verio.net!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: indesign-scripting : Style Creation
Message-ID: <1de7e78f.1@WebX.la2eafNXanI>
Date: Tue, 18 Feb 2003 12:24:22 -0800
References: <3E5245FF.9050807@comidoc.fr>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit