Skip to main content
Known Participant
April 10, 2009
Question

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

  • April 10, 2009
  • 2 replies
  • 871 views

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

This topic has been closed for replies.

2 replies

Inspiring
April 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

Known Participant
April 11, 2009

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

thanks dave

subha

Inspiring
April 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?