🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10084

Re: How to begin scripting?

#10084
From: Dave_Saunders
Date: Fri, 07 Jul 2006 18:39
13 lines
1101 bytes
You're right, that is an error -- but your correction isn't right.

I've just gone back and fixed message 4. Later in the message, I had the right form of that parameter to selectIt. That line should be:

selectIt(myDoc.stories[j].textFrames[-1]);

and not:

selectIt(myDoc.stories[0].textFrames[-1]);

Otherwise, it will not highlight the correct story. Sorry for the mistake (it's a common one that I seem to be unable to rid myself of); amazing it's been there all this time.

Dave
Technical Details
Message-ID: <3bbd759f.108@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing
References: <3bbd759f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,dd9eb181c1e6fc23
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Dave_Saunders@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: How to begin scripting?
Message-ID: <3bbd759f.108@webcrossing.la2eafNXanI>
Date: Fri, 7 Jul 2006 11:39:57 -0700
References: <3bbd759f.-1@webcrossing.la2eafNXanI>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!news2.volia.net!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing