On behalf of my friend:

Query: So I have set up iCal to execute an Apple Script that reboots my router. Bit if my Mac is switched off at that time, the script is run when I next power it on. Meaning, the router reboots when I open Safari to check my email.

How do I make the script to run only at the time.