Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #48474

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

Path csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <petite.abeille@gmail.com>
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; 'subject:skip:a 10': 0.09; 'adapter': 0.16; 'itunes,': 0.16; 'preferences,': 0.16; 'saver': 0.16; 'sure.': 0.16; 'wrote:': 0.18; 'starts': 0.20; 'command': 0.22; 'python?': 0.22; 'to:name:python-list@python.org': 0.22; 'sort': 0.25; 'header:In-Reply-To:1': 0.27; "i'm": 0.30; 'loads': 0.31; 'allows': 0.31; 'subject:time': 0.33; "i'd": 0.34; 'but': 0.35; 'received:google.com': 0.35; 'charset:us-ascii': 0.36; 'possible': 0.36; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'planning': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'header :Message-Id:1': 0.63; 'air': 0.66; 'power': 0.76; 'boots': 0.84; 'macbook': 0.84; 'subject:Using': 0.84; '2013,': 0.91
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=hAboRXmVYIIC48uHzjwPVpKbqaHrAClvUan8GzeLRq8=; b=Jo0KNiiNPWJyyVigkopbyFRCqv7YfIDjA0XXi7jicA3HGcrgCXcqbnnOdGveuO2SX2 t7kpMwa+/aIMPM+fcx1KXHObaj71CV6/vndgroILurqwqPh7xsQafnaPeHHXQBCSdqud BirP6G9oGB6BvbFPgIul2XNvquS2F2xeFYmCHVlhilD/bXJJFdOhS4Uup/RKUPwa0wiL 4C9A0OLXgcX5UWRHVUEYD5Ta8+77VaTLXioscPYxXoRa+VKSkUviqmGtsLAu7Nl6SAQn bDyd93tIAjtwaYNAtfA7Ri24ogrb33fnvUGfMwg7ualOAwKWcpOrZSKSXiYPAp5e4lVO EUbQ==
X-Received by 10.14.173.130 with SMTP id v2mr13320179eel.29.1371411924409; Sun, 16 Jun 2013 12:45:24 -0700 (PDT)
Content-Type text/plain; charset=us-ascii
Mime-Version 1.0 (Mac OS X Mail 6.5 \(1508\))
Subject Re: Using Python to automatically boot my computer at a specific time and play a podcast
From Petite Abeille <petite.abeille@gmail.com>
In-Reply-To <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com>
Date Sun, 16 Jun 2013 21:44:54 +0200
Content-Transfer-Encoding quoted-printable
References <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com>
To "python-list@python.org" <python-list@python.org>
X-Mailer Apple Mail (2.1508)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.3455.1371411931.3114.python-list@python.org> (permalink)
Lines 20
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1371411931 news.xs4all.nl 15902 [2001:888:2000:d::a6]:55316
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:48474

Show key headers only | View raw


On Jun 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 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...


Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Using Python to automatically boot my computer at a specific time and play a podcast "C. N. Desrosiers" <cndesrosiers@gmail.com> - 2013-06-16 12:06 -0700
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-06-16 19:22 +0000
    Re: Using Python to automatically boot my computer at a specific time and play a podcast Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-16 15:34 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Joel Goldstick <joel.goldstick@gmail.com> - 2013-06-16 15:25 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Petite Abeille <petite.abeille@gmail.com> - 2013-06-16 21:44 +0200
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Jason Swails <jason.swails@gmail.com> - 2013-06-16 15:49 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-06-16 16:18 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast "C. N. Desrosiers" <cndesrosiers@gmail.com> - 2013-06-16 16:56 -0400
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Chris Angelico <rosuav@gmail.com> - 2013-06-17 07:55 +1000
  Re: Using Python to automatically boot my computer at a specific time and play a podcast inq1ltd <inq1ltd@inqvista.com> - 2013-06-17 09:24 -0400
    Re: Using Python to automatically boot my computer at a specific time and play a podcast Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2013-06-17 19:03 +0200
  Re: Using Python to automatically boot my computer at a specific time and play a podcast "Lefavor, Matthew (GSFC-582.0)[MICROTEL LLC]" <matthew.lefavor@nasa.gov> - 2013-06-17 10:02 -0500
  Re: Using Python to automatically boot my computer at a specific time and play a podcast Giorgos Tzampanakis <giorgos.tzampanakis@gmail.com> - 2013-06-17 17:52 +0000

csiph-web