Using Python to automatically boot my computer at a specific time and play a podcast

Jason Swails jason.swails at gmail.com
Sun Jun 16 15:49:50 EDT 2013


On Sun, Jun 16, 2013 at 3:06 PM, C. N. Desrosiers <cndesrosiers at gmail.com>wrote:

> Hi,
>
> I'm planning to buy a Macbook Air and I want to use it as a sort of alarm.
>  I'd like to write a program that boots my computer at a specific time,
> loads iTunes, and starts playing a podcast.  Is this sort of thing possible
> in Python?
>

Python cannot do this by itself, as has already been mentioned.

If you're using a Mac, you can schedule your computer to turn on (and/or
off) using System Preferences->Energy Saver->Schedule...

Then run a Python script in a cron job.

In fact, you could do this in bash ;)

HTH,
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20130616/f09cff1d/attachment.html>


More information about the Python-list mailing list