Indesign Server : Repeat action i every 10 seconds
Hello,
For our project we have to scann a directory located on the same machine that the Indesign server.
For this we have this script "scan.js" that we launch once the Indesign server is on :
scan.js :
var cycle=1;
while (1<=1)
{
app.consoleout('Cycle ('+cycle+') de generation lance...');
generate('auto',tabParameters);
sleep(20000);
cycle++;
}
generate() is the function which scann the directory...
The problem is that it seems to consume a lot of energy when we consult the task manager on windows...
My question is :
Is there a way with Indesign server to launch a .js script every 20 seconds without this "tricky" method ?
Thks for your help.
