🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15154

Re: JS: app.paste() leaves new frame unselected

#15154
From: Dave_Saunders
Date: Fri, 02 Jan 2004 19:38
5 lines
1446 bytes
And, speaking of weaknesses in the JS Debugger, I've just discovered another one. It is even more reluctant to allow the screen to update than when running scripts at full speed.

I have a script that meanders through hundreds of paragraphs (thousands when we present it with the real data), updating various paragraphs along the way. It also counts instances of a certain paragraph style that crops up every dozen or so paragraphs. To give the user a sense of progress, and also to keep the undo cache under control, I save the file back over itself every 100 instances of said paragraph style. Just before I do, I update the first paragraph to show the current value of the count. When run from the palette, the screen updates at each save, but this does not happen when run from the Debugger.

Dave
Technical Details
Message-ID: <2ccf29c3.9@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf29c3.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,b9561af257c0b40d
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-02 12:07:58 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: JS: app.paste() leaves new frame unselected
Message-ID: <2ccf29c3.9@webx.la2eafNXanI>
Date: Fri, 2 Jan 2004 11:38:18 -0800
References: <2ccf29c3.-1@webx.la2eafNXanI>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit