🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1702

Re: [CS4 JS] Scripting Indexes

#1702
From: Peter Kahrel
Date: Tue, 27 Jan 2009 12:07
12 lines
1281 bytes
The timings in post #10 are from a script run from the ESTK. It has been mentioned that running scripts from the palette is quicker, which is confirmed:

UndoModes.fastEntireScript 21, 21
UndoModes.autoUndo 50, 43 / 30, 24
UndoModes.entireScript 52, 33 / 31, 26
UndoModes.scriptRequest 24, 25

The timings for autoUndo and entireScript look bizarre here, I've no idea what was going on. Timings after the slash were obtained after restarting InDesign. Didn't improve. The downward trend of these two modes in seuccessive runs is strange.

Anyway, all this confirms that the quickest way to run a script is to have it fired up by doScript() using UndoModes.fastEntireScript.

Peter
Technical Details
Message-ID: <59b7ae01.10@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <59b7ae01.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6b07b633d95c342d
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Kahrel" <kahrel@kahrel.plus.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [CS4 JS] Scripting Indexes
Message-ID: <59b7ae01.10@webcrossing.la2eafNXanI>
Date: Tue, 27 Jan 2009 04:07:21 -0800
References: <59b7ae01.-1@webcrossing.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit