View Single Post
  #22 (permalink)  
Old 04-12-2011, 10:29 AM
quick99si's Avatar
quick99si
Halfway to VIP Status
Offline
Location: Chicago, IL
 
Join Date: Dec 2007
Posts: 631
Reputation: 1245
quick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on repquick99si is halfway to VIP status based on rep
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Certain script run at a certain time

I like your method a little more actually. The only downside would be that mortscript would be loaded in memory during the Sleep() function. I don't know how well it would fare against system freezes or reboots, or maybe even conflicts from other scripts.

For what it's worth, you can use that method in conjunction with Unix time. Something like:

Wait = *seconds from now until midnight calculated in your algorithm up there*
varScheduleTime = TimeStamp() + Wait <-- this will store the Unix time of tomorrow @midnight
RemoveNotifications(...)
RunAt(varScheduleTime,...,...)

Actually, I think I'll revise mine to work like that! I have an script that uploads two backups to my FTP server every day. The idea is that I can be up and running immediately if my phone is lost/stolen!
Reply With Quote