Article View: adobe.scripting.indesign
Article #15431Re: Setting Applied Char Style of Nested Style by name
From: Dave_Saunders
Date: Fri, 28 Nov 2003 19:22
Date: Fri, 28 Nov 2003 19:22
17 lines
1666 bytes
1666 bytes
In my continuing research into nested styles, I suddenly find myself puzzled. I'd been thinking that the construction: nestedStyles.item(n) was an example of using the method item on the collection of nested styles to get the nth nested style. But the Scripting Guide refers to item as a property of nestedStyles. So I'm confused. To be frank, some of these distinctions strike me as somewhat arbitary, but that always leaves me thinking that I must be missing something important. For example, AppleScript has these things called elements that don't get mentioned in the JavaScript part of the Scripting Guide. And yet, JavaScript has the getElements() method that needs to be applied to some results. Is there a relationship here? In AppleScript, nested style is an element of a paragraph style but in JavaScript nestedStyles is a property of a paragraphStyle. I find this to be confusing. Perhaps because I started as an AppleScripter and so my thinking is colored by the way it works. Dave
Technical Details
Message-ID:
<2ccea3bf.2@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccea3bf.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,f6998017447264e4 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-11-28 11:37:41 PST From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Setting Applied Char Style of Nested Style by name Message-ID: <2ccea3bf.2@webx.la2eafNXanI> Date: Fri, 28 Nov 2003 11:22:51 -0800 References: <2ccea3bf.-1@webx.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit