Article View: adobe.scripting.indesign
Article #15220Re: What scripting language to use?
From: Peter_Kahrel
Date: Fri, 12 Dec 2003 15:20
Date: Fri, 12 Dec 2003 15:20
11 lines
1323 bytes
1323 bytes
Dave, Though I can see that the build-up of lots of undoable things in a document can slow things down, something else must be at work as well. If you take 50-page document, do a "save as" to clear the undos and position the cursor somewhere on p. 25, then run this one-line script: app.selection[0].paragraphs[0].spaceBefore="6pt" to set 6 points of space at the top of the current paragraph, you'll see it takes quite a while (7 or 8 seconds on my PC). (Curiously, if you do this on p. 25 of a 25-page document, the script is very fast.) I've noticed that scripts created in Delphi don't suffer from this. Jens: I don't think that there's a way to disable undo recording. Peter
Technical Details
Message-ID:
<2ccee3cc.3@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccee3cc.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,5165739d8fcf75d1 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-12 07:37:51 PST From: Peter_Kahrel@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: What scripting language to use? Message-ID: <2ccee3cc.3@webx.la2eafNXanI> Date: Fri, 12 Dec 2003 07:20:56 -0800 References: <2ccee3cc.-1@webx.la2eafNXanI> Lines: 17 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit