Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!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.009 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'python.': 0.02; 'explicit': 0.07; 'cc:addr:python-list': 0.11; 'python': 0.11; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'invoking': 0.16; 'processes.': 0.16; 'subject:link': 0.16; 'subject:program': 0.16; 'trivially': 0.16; 'wrote:': 0.18; 'wed,': 0.18; 'subject:page': 0.19; 'separate': 0.22; 'cc:addr:python.org': 0.22; 'library,': 0.24; 'module,': 0.24; 'cc:2**0': 0.24; 'script': 0.25; 'header:In-Reply-To:1': 0.27; 'external': 0.29; 'message-id:@mail.gmail.com': 0.30; 'easy,': 0.31; 'question:': 0.31; 'writes:': 0.31; 'allows': 0.31; 'probably': 0.32; "i'd": 0.34; 'something': 0.35; 'operate': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'surely': 0.36; 'done': 0.36; 'operating': 0.37; 'ben': 0.38; 'nov': 0.38; 'pm,': 0.38; '12,': 0.39; 'how': 0.40; 'browser': 0.61; 'visit': 0.64; 'more': 0.64; 'clicking': 0.73; 'ethan': 0.84; 'furman': 0.84; 'to:none': 0.92 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:cc :content-type:content-transfer-encoding; bh=ISqbVfkgHianTyVY+NNtloYRNnwokixO8oHwXcIDjcQ=; b=tT+CztU1pVqrN+DOkT9u8lrLJuH8tKZk4Rzl6vQMc6Uii9ea8YYgnWn2mqxdUg2Zs1 lg0yU91ylKQ6rNoYVY4N9rEBeFhtkeYrPHbtlIS/wCpBKyBTfa1injA13CZeZuly+bMh 8llrgG4f6r0Vv6Z+dQKqLKkS75lsTXdd5NhLKROLjMAuOvRGBMoUjKsIMkCngddBLJ93 J4HfIyrusH+r884ht1UXa38O4dbOUG+wvq2yG4c804iwezmqytMpiuoijOsScCmm2A8j Cj5YUUzpaF/OENdZow5Sxdbf4JS1bDCuLRutU5lgQhZ3WzLExBNd9MZ8oizGuaH8NTlr VuPA== MIME-Version: 1.0 X-Received: by 10.42.37.138 with SMTP id y10mr45259810icd.26.1415759304177; Tue, 11 Nov 2014 18:28:24 -0800 (PST) In-Reply-To: <85ppct5h5c.fsf@benfinney.id.au> References: <5462B203.7070201@stoneleaf.us> <85y4rh5iol.fsf@benfinney.id.au> <5462B94F.4070809@stoneleaf.us> <85ppct5h5c.fsf@benfinney.id.au> Date: Wed, 12 Nov 2014 13:28:24 +1100 Subject: Re: html page mail link to webmail program From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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: 22 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1415759312 news.xs4all.nl 2874 [2001:888:2000:d::a6]:38401 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80587 On Wed, Nov 12, 2014 at 12:42 PM, Ben Finney w= rote: > Ethan Furman writes: > >> 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 [controls an already-running web >> browser to visit a URL and operate a web application]. >> >> Surely this can be done in Python. > > Perhaps. I'd advise a web search for =E2=80=9Cpython script web browser= =E2=80=9D, and be > prepared for also learning how your specific operating system allows > programs to control each other in separate processes. Or just look at antigravity.py in the standard library, which has a way of invoking a web browser - probably something trivially easy, like calling on the webbrowser module, but it's more fun to look it up via the arcane. ChrisA