General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
how do I associate types with external programs?
Posted by: Ken
Date: December 12, 2002 11:18AM

I need help configuring k-meleon to launch external programs to open pages in special format, such as .pdf or .doc. I want to automatically save the file to a temporary directory and call my program on it.

I tried searching this forum; people say it can be done with macros, but how?

Options: ReplyQuote
Re: how do I associate types with external programs?
Posted by: Andres
Date: December 12, 2002 01:21PM

As for pdf, I think K-Meleon opens it with the Acrobat Reader plugin by default (you don't even have to have the plugin in K-M plugins folder but you have to have Acrobat 5 or higher installed; K-Meleon looks for Acrobat 5+ installations at startup). For other Acrobat Reader versions, you have to copy the nppdf plugin file into K-Meleon plugins folder.

I have also written some information about that at
http://www.bahamapress.org/andres/kmeleon/plugins.html

As for other files, add the MIME type to:
user_pref("browser.helperApps.neverAsk.openFile", ...

in prefs.js and also enable:
user_pref("kmeleon.general.CloseDownloadDialog", true);

For a word doc I think it would be e.g. like this:
user_pref("browser.helperApps.neverAsk.openFile", "application/msword");
user_pref("kmeleon.general.CloseDownloadDialog", true);

I did not test that but I hope it will work. You can use the same method for any other file types. You'll get the MIME types e.g. from Start - Settings - Folder Options - File Types.

Options: ReplyQuote
Re: how do I associate types with external programs?
Posted by: Ken
Date: December 12, 2002 11:26PM

Thanks. That worked.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.