🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15432

Re: Setting Applied Char Style of Nested Style by name

#15432
From: Dave_Saunders
Date: Fri, 28 Nov 2003 20:40
13 lines
1160 bytes
Oh dear.

Make a document and give it a paragraph style named 'Body' with a couple of nested styles (I used my famous derunting nested styles, but I don't think it matters). Then run this:

myDoc = app.documents[0];
myPstyles = myDoc.paragraphStyles;
myNstyles = myPstyles.item('Body').nestedStyles;

myNewNstyle = myNstyles.add();

I fear that this last statement causes InDesign CS to crash. Apple then proceeds to wonder if I'd like to send them a bug report.

Dave
Technical Details
Message-ID: <2ccea3bf.3@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 13:07:39 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.3@webx.la2eafNXanI>
Date: Fri, 28 Nov 2003 12:40:32 -0800
References: <2ccea3bf.-1@webx.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit