Auto wake up

profx

ill never 4get watsisname
Who knows how to wake Jag from sleep at a specific time like in the ole days of OS 9??

I thought it wasnt possible in 10.1 but JAG apparently reintroduced this feature.

A small app i tried the other day (iSleep) includes this functionality. It asks for your admin password, then runs sudo, but i dont know what it does after that. Is there a shell app that will set the wakeup time or is it just using sudo to put the machine to sleep??

I guess my main question is what do you do to make ur Mac wakup at a specific time?
 
Seems to me you could just cron an applescript to open a particular app at a particular time.

I'm not 100% sure of this though.

Good Luck.
SA:)
 
The MacOSXHints thread that bluehz mentioned in the other "Auto wake up" thread (gee, that was confusing for a little bit -- you couldn't have picked a slightly different name for the thread, could you? ;)) talks about how to extract a command-line executable from EyeTV's updater utility.

I downloaded the 1.5 updater last night, extracted the executable and it works great! I think it only works as a count-down timer (e.g. "sudo ./Wakein 40" will wake your computer up 40 seconds from the time you enter the command) so you'd have to do a little calculation. But hey, that's what computers are for, right? :)

So if I'm not mistaken, you could make a cron job that would turn on iTunes at 7:01 and then run "./Wakein 86340" (86340 = number of seconds in 23 hours & 59 minutes). Then every morning your computer would wake up at 7:00, start playing iTunes at 7:01 and set itself to wake again the next morning at 7:00. Kind of ugly and not very user friendly, but it's a start. If someone could figure out how EyeTV and iSleep do this on a lower level...

Hey - I just checked inside the iSleep application package and they're using WakeIn as well! I wonder if they just ripped it off of EyeTV, if they got it from Apple, made a version themselves or what...?
 
You could also let the cron task do the math for you:

wakein `echo "60*60*2" | bc` would be two hours.

wakein `echo "60*20" | bc`would be 20 mins.

The hard thing is figuring out which time zone this thing works in. Still haven't wrapped my head around that yet.
 
Back
Top