my function not working without alerts in javascript in indesign cs2!!!
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
function is not a problem, the following things did the probls, i found it
thanks dave
subha

