<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>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.)</div><div><br></div><div>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.</div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">-MCL</div></span></span>
</div>
<br><div><div>On Jun 16, 2013, at 3:44 PM, Petite Abeille wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>On Jun 16, 2013, at 9:06 PM, C. N. Desrosiers <<a href="mailto:cndesrosiers@gmail.com">cndesrosiers@gmail.com</a>> wrote:<br><br><blockquote type="cite">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.<br></blockquote><br>Under preferences, take a look at Energy Saver -> Power Adapter -> Schedule -> Start up or wake.<br><br>Alternatively, the command line utility pmset allows one to access the same functionalities.<br><br><blockquote type="cite"> Is this sort of thing possible in Python?<br></blockquote><br>Sure. But why bother? All at one's finger tip already...<br><br><br><br>-- <br><a href="http://mail.python.org/mailman/listinfo/python-list">http://mail.python.org/mailman/listinfo/python-list</a><br></div></blockquote></div><br></body></html>