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


Groups > comp.lang.python > #21580

Re: Windows Contextmenu

Path csiph.com!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <python-python-list@m.gmane.org>
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; 'received:verizon.net': 0.07; 'terry': 0.07; 'arg,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'am,': 0.12; 'arg': 0.16; 'reedy': 0.16; 'subject:Windows': 0.17; 'wrote:': 0.18; 'arguments': 0.18; 'jan': 0.19; 'wrote': 0.21; 'input': 0.22; 'header:In-Reply-To:1': 0.22; 'runs': 0.23; 'command': 0.24; 'fine': 0.24; 'script': 0.28; 'second': 0.28; 'least': 0.30; 'file.': 0.31; 'values': 0.32; 'explorer': 0.32; 'patrick': 0.32; 'familiar': 0.32; 'list': 0.32; 'header:User-Agent:1': 0.33; 'header:X-Complaints-To:1': 0.34; 'done': 0.34; 'hi,': 0.34; 'to:addr:python-list': 0.35; 'received:org': 0.36; 'run': 0.37; 'but': 0.37; 'entry': 0.37; 'menu': 0.38; 'sometimes': 0.38; 'open': 0.38; 'files': 0.39; 'to:addr:python.org': 0.40; 'more': 0.61; 'selected': 0.66; 'don\xe2\x80\x99t': 0.67
X-Injected-Via-Gmane http://gmane.org/
To python-list@python.org
From Terry Reedy <tjreedy@udel.edu>
Subject Re: Windows Contextmenu
Date Tue, 13 Mar 2012 16:07:29 -0400
References <E566C160C7EBF84D83DEA407CCBC386702310125@lngvieexcp001.legal.regn.net>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding quoted-printable
X-Gmane-NNTP-Posting-Host pool-74-109-121-73.phlapa.fios.verizon.net
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0
In-Reply-To <E566C160C7EBF84D83DEA407CCBC386702310125@lngvieexcp001.legal.regn.net>
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
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.625.1331669268.3037.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331669268 news.xs4all.nl 6922 [2001:888:2000:d::a6]:50993
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21580

Show key headers only | View raw


On 3/13/2012 5:41 AM, Szabo, Patrick (LNG-VIE) wrote:
> Hi,
>
> I wrote the following Script which I want to run from the open with
> contextmenu in Windows.

> Now the script runs fine but I don’t get all arguments from sys.argv.
>
> No mather how many files I mark in the explorer I only get one as an
> argument.

The right-click contextmenu is not a command line. It is more like a 
list of no-arg* methods to call on the selected file.

* or rather, one input arg, with others having default values set when 
the menu entry is created. Sometimes a second input arg is handled, at 
least in effect, with a second submenu, but I am not familiar with how 
those are done in Windows.

-- 
Terry Jan Reedy

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


Thread

Re: Windows Contextmenu Terry Reedy <tjreedy@udel.edu> - 2012-03-13 16:07 -0400

csiph-web