🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15439

Re: Setting Applied Char Style of Nested Style by name

#15439
From: Dave_Saunders
Date: Fri, 28 Nov 2003 22:27
17 lines
1609 bytes
OK, I have determined that as long as I don't have any paragraphs that are actually using my derunting nested styles, I can run my experimental scripts without crashing.

According to the Scripting Guide, the add method when run against nested styles takes no parameters. The only choice is to say:

myNewNstyle = myNstyles.add();

Well, this works. It adds a style at the end of the current list. So, how do I move it up the list? Apparently, I don't. And what if I want it to have some specific properties? I thought I'd be able to do this:

myNewNstyle = myNstyles.add({properties:myProps});

Well, indeed, I can do it, but the properties are ignored. I get the default: No character style through 1 Word no matter what myProps contains.

I suppose that I can simply ripple the properties of the existing styles down the list and then set the properties of the first one to what I want.

Off to try that.

Dave
Technical Details
Message-ID: <2ccea3bf.6@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
References: <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 14:37:44 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!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.6@webx.la2eafNXanI>
Date: Fri, 28 Nov 2003 14:27:12 -0800
References: <2ccea3bf.-1@webx.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit