# VBScript run script every 5 min. while object is opened

**URL:** <https://forum.kirupa.com/t/vbscript-run-script-every-5-min-while-object-is-opened/211765>\
**Category:** programming\
**Created:** [January 4, 2007, 11:46pm UTC](https://forum.kirupa.com/t/vbscript-run-script-every-5-min-while-object-is-opened/211765 "2007-01-04T23:46:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlk](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@mlk](https://forum.kirupa.com/u/mlk)\
**Post date:** [January 4, 2007, 11:46pm UTC](https://forum.kirupa.com/t/vbscript-run-script-every-5-min-while-object-is-opened/211765/1 "2007-01-04T23:46:02Z")

</div>

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
