And as for launching iTunes and playing a Podcast, you should take a look at 
AppleScript. AppleScript is designed specifically for running and controlling 
Mac OS X applications—iTunes among them. (I once wrote a script to sync my 
iTunes play counts from last.fm, for example.)

You might also look at the Automator program (I guess it's still included on 
most Macs). It does mostly the same thing as Applescript (automate Mac 
processes) but it's graphical and doesn't do quite as much.

-MCL

On Jun 16, 2013, at 3:44 PM, Petite Abeille wrote:


On Jun 16, 2013, at 9:06 PM, C. N. Desrosiers 
<cndesrosi...@gmail.com<mailto:cndesrosi...@gmail.com>> wrote:

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.

Under preferences, take a look at Energy Saver -> Power Adapter -> Schedule -> 
Start up or wake.

Alternatively, the command line utility pmset allows one to access the same 
functionalities.

Is this sort of thing possible in Python?

Sure. But why bother? All at one's finger tip already...



--
http://mail.python.org/mailman/listinfo/python-list

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to