Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.039 X-Spam-Evidence: '*H*': 0.92; '*S*': 0.00; '16,': 0.03; 'subject:Python': 0.06; 'bash': 0.09; 'subject:skip:a 10': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'cc:name:python list': 0.16; 'itself,': 0.16; 'itunes,': 0.16; 'nicol\xe1s': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'starts': 0.20; 'email addr:gmail.com>': 0.22; 'python?': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'sort': 0.25; 'script': 0.25; 'header:In- Reply-To:1': 0.27; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'loads': 0.31; 'run': 0.32; 'subject:time': 0.33; 'candidate': 0.34; "i'd": 0.34; 'could': 0.34; 'received:google.com': 0.35; 'possible': 0.36; 'hi,': 0.36; 'turn': 0.37; 'architecture': 0.38; 'christian': 0.38; 'thank': 0.38; 'jason': 0.38; 'planning': 0.38; 'pm,': 0.38; 'skip:p 20': 0.39; "you're": 0.61; 'school': 0.64; 'to:addr:gmail.com': 0.65; 'air': 0.66; 'city': 0.66; 'fact,': 0.69; 'institute': 0.72; '717': 0.84; 'boots': 0.84; 'macbook': 0.84; 'subject:Using': 0.84; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=lw2/0z3mEZTKh6H0KLnmAjtFtYw02weMNl8AZtYvG8g=; b=uvOJ4BFGA9nA14EASCs4o6VizrGZ1ZDuEmpeo021TARbxS1YcbKNbCjBsvm9Br0eGw fAiLLXEeqvhOmBgFne9v0Jcmjy0Xi5IRCsrNJ8jHJskZJUIqls1CzTdM27KNDoA/AFTl jTf/W3XPTXN5iYL+q4AWZBixO9CVTnaSq9WxqM303HaHdC2GyjvAIt+L+FY/nwX8PMGA IdInTKcl5IQV5xt9/FblfQ6Bvzd21emsqPmqRICZXcCuFqUpoqh266nROtayJMQ0IGJ6 T8kzsg3Sg98ab8yH7eQ11UTs7GkhHzzT6vAUCJr96LbLHSbX4sgXovizmHYO7lVMjKlb XQPg== MIME-Version: 1.0 X-Received: by 10.182.153.5 with SMTP id vc5mr7112663obb.32.1371416183764; Sun, 16 Jun 2013 13:56:23 -0700 (PDT) In-Reply-To: References: <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com> Date: Sun, 16 Jun 2013 16:56:23 -0400 Subject: Re: Using Python to automatically boot my computer at a specific time and play a podcast From: "C. N. Desrosiers" To: Jason Swails Content-Type: multipart/alternative; boundary=089e013a0ada79020304df4bb63f Cc: python list 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: 97 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371416186 news.xs4all.nl 15925 [2001:888:2000:d::a6]:57967 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48481 --089e013a0ada79020304df4bb63f Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you! On Sun, Jun 16, 2013 at 3:49 PM, Jason Swails wrote= : > > > > On Sun, Jun 16, 2013 at 3:06 PM, C. N. Desrosiers 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 > --=20 Christian Nicol=E1s Desrosiers Master of City Planning candidate School of Architecture + Planning Massachusetts Institute of Technology t. 717 860 6252 e. cnd@mit.edu www.twitter.com/cndesrosiers --089e013a0ada79020304df4bb63f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you!


On Sun, Jun 16, 2013 at 3:49 PM, Jason Swails <ja= son.swails@gmail.com> wrote:



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

I'm planning to buy a Macbook Air and I want to use it as a sort of ala= rm. =A0I'd like to write a program that boots my computer at a specific= time, loads iTunes, and starts playing a podcast. =A0Is 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/o= r off) using System Preferences->Energy Saver->Schedule...

Then run a Python script in a cron job.

In fact, you could do thi= s in bash ;)

HTH,
Jason



--
Christian Nicol=E1s Desrosiers
Master of City Planning = candidate
School of Architecture + Planning
Massachuset= ts Institute of Technology

t. 717 860 6252=A0


--089e013a0ada79020304df4bb63f--