Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.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; 'question?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; 'default),': 0.16; 'finney': 0.16; 'ideally,': 0.16; 'pane': 0.16; 'really?': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 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; '>>>': 0.22; 'header :User-Agent:1': 0.23; '(or': 0.24; 'script': 0.25; 'header:X -Complaints-To:1': 0.27; 'installed': 0.27; 'external': 0.29; 'related': 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; 'message-id:@gmail.com': 0.38; 'ben': 0.38; 'gmail': 0.38; 'window': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'wife': 0.60; 'field.': 0.61; 'new': 0.61; 'browser': 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; 'received:89': 0.85; 'opens': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Akira Li <4kir4.1i@gmail.com> Subject: Re: html page mail link to webmail program Date: Fri, 28 Nov 2014 08:09:04 +0300 References: <5462B203.7070201@stoneleaf.us> <85y4rh5iol.fsf@benfinney.id.au> <5462B94F.4070809@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain X-Gmane-NNTP-Posting-Host: 89.169.229.68 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:J1hRzFDfmj0gKN1wJmzD1z2VhWY= 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: 37 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1417151434 news.xs4all.nl 2952 [2001:888:2000:d::a6]:52286 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:81665 Ethan Furman writes: > 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. > Related question: http://stackoverflow.com/questions/14288177/interact-with-other-programs-using-python -- Akira