Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a firefox addin which can do that or can you point me to an easy tut to do that ?

share|improve this question
add comment

3 Answers 3

up vote 2 down vote accepted

Can you do with the "Send to" extension? The developer says it's a test version and it has not been updated in a while (2004) so you will have to modify it to allow the more recent versions of Firefox.

Sends selected text to a file and then opens that file in an external application. You can use the contextmenu or a shortcut (ctrl+e).

alt text

alt text

Edit: after modifying the "em:maxVersion" entry in the install.rdf file inside sendto.xpi, I could install it on Firefox 3.5 and it works nearly fine. The first time, it works OK, subsequent times, it does not. There is an error in the extension. I'll see if I can fix it (I've never done much Javascript and no Firefox add-on).

Re-Edit: I fixed it (roughly) but it works several times now. Get my updated version here.

share|improve this answer
    
Wow I installed your modified version and it worked great ! I just don't know when it appends to text file though append is unchecked. –  asksuperuser Nov 4 '09 at 19:40
    
I don't know much about firefox addon, is the source code open so that I can customize it ? –  asksuperuser Nov 4 '09 at 19:55
    
Firefox add-on have a .xpi extension. Actually it's a zip file. Open it and you can access the code. It's stored in a .jar file, which is also a zip. There you'll find many files. Most of the interesting stuff is in the .js files containing the Javascript code. It always appends in the temp file, the checkbox only tells whether it appends at the top or at the bottom of the file. If you want another behavior, let me know and I'll code it for you. –  Snark Nov 4 '09 at 22:35
add comment

If you're the author of the .exe program I would try and bind it to a particular Windows shortcut so it will "grab" the selected text and run the program.

If you're not I wouldn't know how to do it.

share|improve this answer
    
Good idea also, thanks. –  asksuperuser Nov 4 '09 at 19:46
add comment

The add-on RunWith 0.3 does what you ask:

Runs the selected string as a command line parameter of a local program via right-click or Tools menu.

It dates from May 24, 2009 and supports Firefox 3.0 – 3.0.*.
It's recent enough and has very good reviews, so that if force-installed it might work for you.

share|improve this answer
    
I cannot find the txt file, I think it's because I use a french windows os. –  asksuperuser Nov 4 '09 at 19:48
    
Would be great otherwise. –  asksuperuser Nov 4 '09 at 19:49
    
Quel fichier text? –  harrymc Nov 4 '09 at 20:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.