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!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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'subject:Python': 0.06; 'subject:skip:a 10': 0.09; 'python': 0.11; 'bios': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'itunes,': 0.16; 'magic': 0.16; 'program"': 0.16; 'subject: \n ': 0.16; 'wrote:': 0.18; 'starts': 0.20; '(the': 0.22; 'python?': 0.22; "aren't": 0.24; 'mon,': 0.24; 'question': 0.24; 'sort': 0.25; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; "i'm": 0.30; 'loads': 0.31; 'this.': 0.32; 'option': 0.32; 'subject:time': 0.33; "i'd": 0.34; 'could': 0.34; 'but': 0.35; 'received:google.com': 0.35; 'possible': 0.36; 'hi,': 0.36; 'question,': 0.38; 'to:addr:python- list': 0.38; 'planning': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'more': 0.64; 'different': 0.65; 'air': 0.66; 'boots': 0.84; 'macbook': 0.84; 'subject:Using': 0.84; 'wakes': 0.84; '"how': 0.91; '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 :content-type; bh=O3Qq1N4MOvRQFuOQtJTUyR6yjXWhB5Biq3NlLvgWfwc=; b=AUkbYL/G2sf0UmoDuQUo2ZqXb8ZTFVss7OnV9dK4YO62Dnoyv0Gd0WtzOc6Kje4i3D uh63SchysxU7S4p/6p3TG8Ens64RJY4GB/C7lz9f5qKVRmdjxtBVycdMqcIf/KkB4lqx sgNEFblkfUc86+AcgZgDrjwiPBnoStX7IwfYlW3Fk7JfgvLgyssDSCMCqWZVu9EUh8bE BIcjG9uSUFfkAYNBSppldmElEVEUEG7Y2I+wXVn0r/Yv2IeA8qe4I6VzsHIwriovR5LR xISv1fb2gJ36M/qCjGj/oGEuhsf72I/IgQ6kWqi3X44HLuwk+BwZPw6F5o4R3pF9SmKc wlDg== MIME-Version: 1.0 X-Received: by 10.58.249.236 with SMTP id yx12mr3654861vec.25.1371419729919; Sun, 16 Jun 2013 14:55:29 -0700 (PDT) In-Reply-To: <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com> References: <6f5ad203-f692-414f-a895-2c474082e9bb@googlegroups.com> Date: Mon, 17 Jun 2013 07:55:29 +1000 Subject: Re: Using Python to automatically boot my computer at a specific time and play a podcast From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1371419733 news.xs4all.nl 15928 [2001:888:2000:d::a6]:40460 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:48483 On Mon, Jun 17, 2013 at 5:06 AM, 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 *on the system itself* cannot do this. However, if the BIOS features aren't enough (eg if you want more flexibility), there's one option to explore. See if your Macbook has Wake-On-LAN support; with that, you could have a Python script *on a different machine* send a magic packet that wakes your target. However, this isn't a Python question, it's a systems administration one. (The very specific question "How can I trigger wake-on-LAN from a Python program" would be a Python question (obviously!), but that's only a tiny part of your problem.) ChrisA