Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.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.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; '(using': 0.07; 'explicit': 0.07; 'cursor': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'question?': 0.09; '~ethan~': 0.09; 'python': 0.11; 'default),': 0.16; 'finney': 0.16; 'ideally,': 0.16; 'pane': 0.16; 'really?': 0.16; 'subject:link': 0.16; 'subject:program': 0.16; 'tab': 0.16; 'win7': 0.16; 'wrote:': 0.18; 'subject:page': 0.19; 'starts': 0.20; 'header :User-Agent:1': 0.23; '(or': 0.24; 'script': 0.25; 'header:In- Reply-To:1': 0.27; 'installed': 0.27; 'external': 0.29; 'specified': 0.30; 'code': 0.31; 'loads': 0.31; 'question:': 0.31; 'writes:': 0.31; 'this.': 0.32; 'open': 0.33; 'running': 0.33; "can't": 0.35; 'anywhere': 0.35; 'more,': 0.35; 'but': 0.35; 'there': 0.35; 'surely': 0.36; 'done': 0.36; 'too': 0.37; 'ben': 0.38; 'gmail': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'wife': 0.60; 'field.': 0.61; 'new': 0.61; 'browser': 0.61; 'received:173': 0.61; 'address': 0.63; 'happen': 0.63; 'subject': 0.69; 'default': 0.69; 'clicking': 0.73; 'compose': 0.84; 'ethan': 0.84; 'furman': 0.84; 'opens': 0.91 Date: Tue, 11 Nov 2014 17:35:11 -0800 From: Ethan Furman User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 MIME-Version: 1.0 To: python-list@python.org Subject: Re: html page mail link to webmail program References: <5462B203.7070201@stoneleaf.us> <85y4rh5iol.fsf@benfinney.id.au> In-Reply-To: <85y4rh5iol.fsf@benfinney.id.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 26 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415756116 news.xs4all.nl 2968 [2001:888:2000:d::a6]:50483 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80583 On 11/11/2014 05:08 PM, Ben Finney wrote: > Ethan Furman writes: > >> My wife (using a Win7 machine) will be on a web page that has a link >> to mail somebody. She clicks on it, and it opens the currently >> installed but unused Thunderbird. >> >> Ideally, what would happen is a new window/tab would open to gmail >> with a new compose window with the email address in place and the >> cursor in the subject line. > > What is the Python question? I can't see anywhere that you would be > using Python code to address this. Really? Huh. Okay, the explicit Python question: Clicking on a mail link in a web browser can start an external program. I would like that external program to be a Python script that: opens a new tab in the currently running browser (or a new default browser window), loads up the default web mail client (or one specified if there is no way to know/have a default), navigates to the compose pane (or starts there if possible), enters in the email address from the link that was passed to it, and, if not too much more, move the cursor to the subject field. Surely this can be done in Python. -- ~Ethan~