View Single Post
  #20 (permalink)  
Old 04-12-2011, 06:42 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

Quote:
Originally Posted by elesbb View Post
thank you !

one quick question , when the command runAt is executed , does the script that executes that command need to be ran again ? or does the device know when to run the desired program automatically after you execute the script ?

like in the code you listed , it uses the variable (varTomorrowSchedule) to tell the runAt command when to launch specified program , mus the script be constantly ran to reassign the value of varTomorrowSchedule ? or once you run the script once that's it ? thanks again man . You rock !
Yes, it does. The RunAt() command can only schedule one notification at a time, so the commands above must be left in the script in order to have it schedule its notification on its own.

The first time you run it will be manual and it will add itself to the notification queue for tomorrow at midnight. When it runs at that time, it'll add itself to the queue on the following day at midnight, and so on.

You can actually see all the notifications on your device using dotFred's Task Manager (to verify that your script is working or the delete/add notifications manually). He's the author of PIMBackup and they're both fantastic programs IMO. Check out his site at: Dotfred's TaskMgr
Reply With Quote
This post has been thanked 1 times.