Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'received:198': 0.07; '"> To: Petite Abeille Date: Mon, 17 Jun 2013 10:02:49 -0500 Subject: Re: Using Python to automatically boot my computer at a specific time and play a podcast Thread-Topic: Using Python to automatically boot my computer at a specific time and play a podcast Thread-Index: Ac5ra7itIShZ5mOOTaCBhXED847Szg== References: <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_D36345A85A6F48D18EE34B8005AA1135nasagov_" MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.10.8794, 1.0.431, 0.0.0000 definitions=2013-06-17_03:2013-06-17, 2013-06-17, 1970-01-01 signatures=0 X-Mailman-Approved-At: Mon, 17 Jun 2013 17:20:50 +0200 Cc: "python-list@python.org" X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 90 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371482451 news.xs4all.nl 15867 [2001:888:2000:d::a6]:36185 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48525 --_000_D36345A85A6F48D18EE34B8005AA1135nasagov_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable And as for launching iTunes and playing a Podcast, you should take a look a= t AppleScript. AppleScript is designed specifically for running and control= ling Mac OS X applications=97iTunes among them. (I once wrote a script to s= ync my iTunes play counts from last.fm, for example.) You might also look at the Automator program (I guess it's still included o= n most Macs). It does mostly the same thing as Applescript (automate Mac pr= ocesses) 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 > 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, loa= ds 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 --_000_D36345A85A6F48D18EE34B8005AA1135nasagov_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
And as for launching = iTunes and playing a Podcast, you should take a look at AppleScript. AppleS= cript is designed specifically for running and controlling Mac OS X applica= tions=97iTunes among them. (I once wrote a script to sync my iTunes play co= unts from last.fm, for example.)

You might also lo= ok 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 Ju= n 16, 2013, at 9:06 PM, C. N. Desrosiers <cndesrosiers@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 spe= cific time, loads iTunes, and starts playing a podcast.
Under preferences, take a look at Energy Saver -> Power Adapter -> S= chedule -> Start up or wake.

Alternatively, the command line util= ity pmset allows one to access the same functionalities.

Is this sort of thing possible in Python?
<= br>Sure. But why bother? All at one's finger tip already...



= --
http= ://mail.python.org/mailman/listinfo/python-list
<= /div>
= --_000_D36345A85A6F48D18EE34B8005AA1135nasagov_--