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

my function not working without alerts in javascript in indesign cs2!!!

New Here ,
Apr 10, 2009 Apr 10, 2009

i wrote one function in my main javascript, while am putting alert inside that function it runs fine, but it not working after command that alert. what's the reason?

this happens eariler time, but it gets recovered after putting the following line

app.activeDocument.recompose;

this time that command also not works.

thanks

Subha

TOPICS
Scripting
824
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
Explorer ,
Apr 10, 2009 Apr 10, 2009

Have you tried putting in a delay (in VB: 'sleep' command)?

Maybe without alert, the script jumps too soon into the following statement, while other processing/file saving/whatever is still finishing?

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
Advocate ,
Apr 10, 2009 Apr 10, 2009

That should be:

app.activeDocument.recompose();

As for the rest of your question, there's no way to even begin to guess without seeing the code of your function.

Dave

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
New Here ,
Apr 11, 2009 Apr 11, 2009
LATEST

function is not a problem, the following things did the probls, i found it

thanks dave

subha

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