🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8731

problem with nextStyle.name

#8731
From: Steve_Light
Date: Thu, 28 Sep 2006 08:20
12 lines
1401 bytes
CS2 (4.04)
I'm tring to collect all property of paragraphstyles but found strange error.
For test make new doc and add paragraph style "p1" and change Next Style to [No Paragraph Style]

JS:
alert("Name: " + app.activeDocument.paragraphStyles[2].name + ", Next: " +app.activeDocument.paragraphStyles[2].nextStyle.name);
shows message "Name: p1, Next: undefined" without error

VBS/VB6
Set a = CreateObject("InDesign.Application.CS2")
Set d = a.ActiveDocument
MsgBox ("Name: " & d.ParagraphStyles.Item(3).Name) '<-- ok MsgBox ("Next: " & d.ParagraphStyles.Item(3).Nextstyle.Name) '<--- error shows: 1st: "Name: p1" 2nd: error message "request object" I tried to check property of d.ParagraphStyles.Item(3) under VB6 and VBA(MSword). But VB6/VBA(MSword) has abnormal terminated if I try to expand object in Watch window.
Technical Details
Message-ID: <3bc1cef3.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.albasani.net!news.isoc.lu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2f8a9309c8ea275e,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Steve_Light@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.albasani.net!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: problem with nextStyle.name
Message-ID: <3bc1cef3.-1@webcrossing.la2eafNXanI>
Date: Thu, 28 Sep 2006 01:20:21 -0700
Lines: 23
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit