🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17159

Re: [AS] Am I triggering a known issue, or is this script just written incorrectly?

#17159
From: Eric McManus
Date: Thu, 26 Jun 2003 18:26
13 lines
2188 bytes
Let me say it again: Thanks for all your help, Jay. I've figured out the crash, and I'll detail the process for any other people who might be as easily confused as I.

I took out those selection lines (not sure what they were for myself) and put back the on error sections (but not the color-coding ones). I started a new test pub in InDesign, with just one frame, one sentence in the frame with a parenthetical, the one paragraph style (applied to the sentence) and the one character style (unapplied). Running this shut down InDesign.

I commented out all the try and on error sections. I opened the Event Log and ran the script on the same test pub. It seems to have operated normally (count of stories:1, count of paragraphs:1) up to the point of getting the applied paragraph style. Then InDesign drops out.

The Event Log listed:

get applied paragraph style of paragraph 1 of story 1 of story 1 of document "scripttester3"

as the step before the crash. I had to look at it three times, but I eventually noticed that it was mentioning the story twice. So, first I tried taking out the "tell story j" line, with its matching "end tell". That got an error, but no crash. So I put those back, and took "of story j" off the end of the "set myParaName..." line. Now it works.

I'll add in more error-checking, then test on a more varied pub, but I think I've got it.
Technical Details
Message-ID: <1de9b237.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9b237.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,fb399c6421d29800
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-26 11:40:01 PST
From: "Eric McManus" <emcmanus@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Am I triggering a known issue, or is this script just written incorrectly?
Message-ID: <1de9b237.1@WebX.la2eafNXanI>
Date: Thu, 26 Jun 2003 11:26:13 -0700
References: <1de9b237.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit