Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

reduce script running time

Participant ,
Jan 29, 2019 Jan 29, 2019

I need to reduce the script running time.

Can you please share the best practice to write code.

TOPICS
Scripting
480
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 29, 2019 Jan 29, 2019

HI priyak7746321 ;

depends on the version of InDesign, the documents you run the code at and of course the code.

Without a sample it's hard to do suggestions.

If you never did a look into everyItem() have a look now:

Marc Autret | On 'everyItem()'

http://www.indiscripts.com/post/2010/06/on-everyitem-part-1

http://www.indiscripts.com/post/2010/07/on-everyitem-part-2

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 29, 2019 Jan 29, 2019

priyak7746321  wrote

I need to reduce the script running time.…

Something generic: You can't have enough memory in your machine.

Adding RAM will dramatically reduce running time of any script.

Regards,
Uwe

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 29, 2019 Jan 29, 2019
LATEST

in my machine having 16 gb ram even its taking 3 hrs to process 350 pages. just placing text and images.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines