|
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!
|