Article View: adobe.scripting.indesign
Article #712Re: [AS] Script runs slower and slower
From: SuperMacGuy
Date: Tue, 17 Mar 2009 14:57
Date: Tue, 17 Mar 2009 14:57
1 lines
1194 bytes
1194 bytes
Without seeing your code it's hard to say what you can optimize. Repeat loops are your first area to target, to make them as fast as possible. There are some very tricky ways to deal with lists in repeats that can yeild amazing results, but need to be studied carefully. Check MacScripter.net for examples. You might also want to try to limit the size of any lists, or try to filter down a list of objects to a shorter list of objects. Or instead of looking at all page items only look at page items of page X.
Technical Details
Message-ID:
<59b839fa.6@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!newshub.sdsu.edu!webcrossingReferences:
<59b839fa.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,964f40adb0036d50 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: SuperMacGuy@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [AS] Script runs slower and slower Message-ID: <59b839fa.6@webcrossing.la2eafNXanI> Date: Tue, 17 Mar 2009 07:57:19 -0700 References: <59b839fa.-1@webcrossing.la2eafNXanI> Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit