🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18816

Re: indesign-scripting : Style Creation

#18816
From: Olav Kvern
Date: Wed, 19 Feb 2003 20:10
11 lines
1413 bytes
Laurent--

Actually, all you have to do is test to see if the value is a Long (using TypeName). If it is, it's idNothing--it can't be anything else in this case.

Further, if the value *is* idNothing, you don't need to do anything--a newly created character style has *all* values set to idNothing. This is true for any property--if the type of the property in the source style is a long, you need do nothing with the corresponding value in the new style (as it will already be idNothing).

The way that InDesign's character styles work is different (and in my opinion, better) than the way they work in other programs. It just takes a little getting used to.

Thanks,

Ole
Technical Details
Message-ID: <1de7e78f.6@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!newsfeeds.sol.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-19 12:38:07 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!newsfeeds.sol.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.6@WebX.la2eafNXanI>
Date: Wed, 19 Feb 2003 12:10:38 -0800
References: <3E5245FF.9050807@comidoc.fr>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit