[Greasemonkey] Re: unix users: is there an easy, cross-platform way to get the default editor?

Aaron Boodman zboogs at gmail.com
Sat Apr 16 17:11:53 EDT 2005


sorry, yeah, typo in my psuedocode

As I understand it, I'm supposed to use assoc to get the filetype,
then use ftype to get the command that opens the file.

On 4/16/05, Jeremy Dunck <jdunck at gmail.com> wrote:
> On 4/16/05, Aaron Boodman <zboogs at gmail.com> wrote:
> >
> > For windows, for example, this is what I'm doing (in pseudocode):
> 
> "ftype .txt" returns nothing for me on Windows 2003.
> "ftype txtfile" returns "%SystemRoot%\system32\NOTEPAD.EXE %1"
> _______________________________________________
> Greasemonkey mailing list
> Greasemonkey at mozdev.org
> http://mozdev.org/mailman/listinfo/greasemonkey
>


More information about the Greasemonkey mailing list