Wake Up, Work, and then Snooze

David Brooks dbrooks at unlserve.unl.edu
Thu Jan 18 16:28:52 EST 2007


This approach seems to work very well.  Thanks, Klaus.

Best,

Dave B.

On Jan 18, 2007, at 12:38 PM, Klaus Major wrote:

> Hi David,
>
>> I'd like to have a stack wake up (say every hour), do some work,  
>> and then go back to sleep. Has anyone got something like that  
>> working?
>
> This sounds like a case for "send xyz to ... in..."
>
> ...
> send "do_important_hourly_stuff" to stack xyz in 60*60 secs
> ...
>
>
> Then in the handler:
>
> on do_important_hourly_stuff
>    ## do your important hourly stuff here
>    ## ..
>   send "do_important_hourly_stuff" to stack xyz in 60*60 secs
> end do_important_hourly_stuff
>
>> I'm nervous about setting the idlerate to a rather large number,  
>> and I'm seeking suggestions about prior experiences before I try a  
>> few experiments.
>
> Using "idle" and "idlerate" for this task is a very, very, very,  
> very, very bad idea ;-)
>
>> Thanks.
>>
>> Dave Brooks
>
> Regards
>
> Klaus Major
> klaus at major-k.de
> http://www.major-k.de
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list