VBScript run script every 5 min. while object is opened

Hi there fellow geeks, I am awfully bad at programming and here’s what I need to do:

I am writing a javascript which saves a snapshot of my current document in Photoshop. I’ve managed that bit but the catch is I cannot have an jscript running all the time in CS so I use a VBScript (with WSH) to call the javascript.

I know there is a ‘sleep’ function but I have a lot of difficulty putting into action.

Any clues ?

mlk