Article View: adobe.scripting.indesign
Article #15215Re: What scripting language to use?
From: Dave_Saunders
Date: Fri, 12 Dec 2003 12:53
Date: Fri, 12 Dec 2003 12:53
9 lines
1465 bytes
1465 bytes
Peter, I'm not sure that the speed issue is JS specific (although you might have run into something specific). The main issue with long documents, no matter which scripting language you use, is the undo mechanism. ID's unlimited undo feature extends into scripts, so you can undo a script one action at a time, if you want -- this is sometimes useful if you can't see how the script managed to produce some unexpected result: undoing the actions can at least show you the sequence that got you to where you ended up. The trick is to build a save into your script at reasonable intervals. I had a script the other day that I finally canceled after 4.5 hours (for canceled read force quit; there's no other way). I added a frequent save (too frequent, in retrospect), and the same script ran the same data in 40 minutes. Dave
Technical Details
Message-ID:
<2ccee3cc.1@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 05:07:35 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: What scripting language to use? Message-ID: <2ccee3cc.1@webx.la2eafNXanI> Date: Fri, 12 Dec 2003 04:53:02 -0800 References: <2ccee3cc.-1@webx.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit