Subscribe Bookmark RSS Feed

JSL Scripting automating the automation

saitcopuroglu

Community Trekker

Joined:

Sep 29, 2014

Creating many jsl script which generates a bunch of reports which saves themselves as .html (interactive) and dreamweaver uploads to report center web site. But trigger still needed, me myself to open and run those scripts.

Is there a script for the scripts to run themselves in a periodic interval (let's say every 20 mins or hour) so I can concentrate on my other duties?

Many thanks in advance

3 REPLIES
pmroz

Super User

Joined:

Jun 23, 2011

You could dedicate a JMP window and use the wait(seconds) command to do something periodically.

wait(1200)     // will pause for 20 minutes

wait(3600)     // will pause for an hour

saitcopuroglu

Community Trekker

Joined:

Sep 29, 2014

Thank you!

My scripts generally start and end as;

Where and how should I replace it?

Many thanks.

nw = New Window( "Island Sales Performance Report",

)

  )

  )

  )

);

nw[Outline Box( "CUMULATIVE REVENUE CURVE" )] << Close( 1 );

pmroz

Super User

Joined:

Jun 23, 2011

You could use the WHILE statement with essentially an infinite loop.  To break out of this hit the ESC key.

while (1 == 1,

     nw = New Window( "Island Sales Performance Report",

     .

     .

     nw[Outline Box( "CUMULATIVE REVENUE CURVE" )] << Close( 1 );

    

     wait(1200);

);