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: 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 Subject: Re: Windows Contextmenu Date: Tue, 13 Mar 2012 16:07:29 -0400 References: 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: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 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: 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 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=E2=80=99t get all arguments from sys= =2Eargv. > > 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=20 list of no-arg* methods to call on the selected file. * or rather, one input arg, with others having default values set when=20 the menu entry is created. Sometimes a second input arg is handled, at=20 least in effect, with a second submenu, but I am not familiar with how=20 those are done in Windows. --=20 Terry Jan Reedy