Article View: adobe.scripting.indesign
Article #8638Re: CS2(JS)ParagraphStyle
From: Dave_Saunders
Date: Mon, 02 Oct 2006 13:40
Date: Mon, 02 Oct 2006 13:40
9 lines
1351 bytes
1351 bytes
A couple of things to remember: 1. If the text frame is empty, you'll get an error (as would my version that invoked texts[0]. 2. Your script is assuming that all the text in the frame has the same style. You're only getting the style of the first paragraph and you're not checking the rest of the assertion is true. That is, your script will get the name of the paragraph style of the first paragraph no matter what style is applied to all the other paragraphs. If that's what you want, then fine, but it is important when expressing such functional goals to be strictly accurate or you'll fool yourself into believing things that aren't true. Dave
Technical Details
Message-ID:
<3bc1d838.2@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossingReferences:
<3bc1d838.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,21d91a5828d2ce59 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeed.freenet.de!news.albasani.net!news.isoc.lu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: CS2(JS)ParagraphStyle Message-ID: <3bc1d838.2@webcrossing.la2eafNXanI> Date: Mon, 2 Oct 2006 06:40:21 -0700 References: <3bc1d838.-1@webcrossing.la2eafNXanI> Lines: 16 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit