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


Groups > comp.lang.python > #21577 > unrolled thread

RE: Windows Contextmenu

Started by"Prasad, Ramit" <ramit.prasad@jpmorgan.com>
First post2012-03-13 17:28 +0000
Last post2012-03-13 17:28 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  RE: Windows Contextmenu "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-13 17:28 +0000

#21577 — RE: Windows Contextmenu

From"Prasad, Ramit" <ramit.prasad@jpmorgan.com>
Date2012-03-13 17:28 +0000
SubjectRE: Windows Contextmenu
Message-ID<mailman.622.1331660250.3037.python-list@python.org>
> > 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.
> 
> You're missing out vital information:
> 
> * How have you attached this code to the context menu? What was
> the exact registry entry (or other method) you used?

From a quick Google search, it seems that most of the context menu
entries open a single file. If multiple files are selected then
the command is called once for each file. The workaround seems
to check if the processes is already running and if it is then to
directly send it a "open" command.

That being said, since you are opening a web browser (or so it
seems to me based on the webbrowser.open), you should not have
an issue because modern web browsers will open each link in a tab.

To answer your question, you will not get more than one as an
argument. That is expected behavior. 

Ramit


Ramit Prasad | JPMorgan Chase Investment Bank | Currencies Technology
712 Main Street | Houston, TX 77002
work phone: 713 - 216 - 5423

--

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.  

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web