🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15356

Re: Speed issue (JS)

#15356
From: Dave_Saunders
Date: Sat, 29 Nov 2003 14:15
9 lines
1532 bytes
It's not so much the size of the document that matters as the number of actions the script does that must be remembered for undo.

Watching the way that Find/Change handles this has me envious. It will undo a huge search with a single Command-Z. So it must have some way of essentially taking a snapshot, switching off the undo mechanism, doing its thing and then switching it back on again. Whatever, no matter how many changes there are, only one Undo is needed to get back to where you were.

I wish such a capability were available to scripters so that a script could choose between undo each step and undo the whole. If you chose the latter, then the undo mechanism would remember the state at the start of your script and at the end and nothing in between.

The way to speed up a script is to save the document occasionally to flush the undo cache.

Dave
Technical Details
Message-ID: <2ccea623.0@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccea623.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5160ccea7493a62f
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-29 06:37:38 PST
From: Dave_Saunders@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Speed issue (JS)
Message-ID: <2ccea623.0@webx.la2eafNXanI>
Date: Sat, 29 Nov 2003 06:15:45 -0800
References: <2ccea623.-1@webx.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit