Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to add file types to Firefox Download Actions

3,377 views
Skip to first unread message

Siddharth

unread,
Dec 29, 2006, 7:32:32 AM12/29/06
to
Hi,

I need to open a file with a particular extension(say, *.abc) with my
custom application. I need that whenever firefox encounters this link
it should invoke that application.

HOW DO I ADD "ABC" TO THE LIST OF FILE TYPES so I can associate it with
an action, i.e., use application "MyApplication"?

I have seen that firefox is having some options related to Download (
View & Edit Action - Mime types, extension). We can edit action for
files which are already listed there but there is no option for adding
a new file type. It was present is previous versions as "Helper
Application".

Any help..??

Regards,
Siddharth

Nir

unread,
Dec 29, 2006, 7:43:27 AM12/29/06
to
In Firefox , goto File > Open File. open a file of that type (.xyz) , FF
will ask you to choose an helper application , select that application
and also select the option 'do this automatically for ...now on'

Siddharth

unread,
Dec 29, 2006, 8:16:05 AM12/29/06
to

Thanks, but the dialog is not coming always. Currently, i got it for
.zip, but for .dat files it's displaying its content text in the
browser(i have a simple text file which has been renamed for testing
purposes as .dat).

I am on windows. Does window Registry has anything to do with this..??
When i assigned the ".zip" to one custom app then a new entry for that
is made. How the entries for file association is there for "View and
Edit Actions" when i didn't attempt to open and set apps for them..??

Regards,
Siddharth

Nir

unread,
Dec 29, 2006, 8:31:24 AM12/29/06
to

FF checks file content not file extensions and if it 'text/plain' then
it will open within FF .
try to open an original .dat file .
http://kb.mozillazine.org/MIME_types

Nir

unread,
Dec 29, 2006, 8:34:08 AM12/29/06
to

Siddharth

unread,
Dec 29, 2006, 8:45:37 AM12/29/06
to


Thanks a lot..!! Now i am able to open files using the custom app. I
was confused because in my linux pc(mozilla browser), the mimeTypes.rdf
file has many entries while there was none for FF 2 on my windows
machine.

We need to associate file types with apps. We do not want this to be
done by user but instead make it automatic. One way is to edit
mimeTypes.rdf. Is there any other way..?? We want to include this as
installation procedure for our app.

Regards,
Siddharth

Frank Tabor

unread,
Dec 29, 2006, 8:58:50 AM12/29/06
to

When you install your app in Windows, if you tell windows what the mime
type is for the application and it's files, Firefox will pick this up from
Windows.

In Windows, My computer, Tools, Folder Options, File Types, and make sure
the app files have the correct mime type set for the extension.

--
Frank Tabor
"Seed me, Seymour"
-- a random number generator meets the big green mother from outer space

Siddharth

unread,
Dec 29, 2006, 9:15:00 AM12/29/06
to

Till now i have not changed the registry. I added the extension in My
Comp->Tools->Folder Options and associated the program to open it.
There was no mime type column. But that didn't help for FF. Do i need
to change the registry also..??

If Firefox reads from windows registry then why only a limited number
of extension and it's app are listed in "View & Edit Action" in
Download..??

Regards,
Siddharth

squaredancer

unread,
Dec 29, 2006, 10:26:01 AM12/29/06
to
On 29/12/2006 15:15, CET - what odd quirk of fate caused Siddharth to
generate the following:? :
you are confusing the Win "registry" with the filetype associations that
are set in the Win Explorer (also accessable via My Computer), as per
instructions from Frank!

reg

Andrew DeFaria

unread,
Dec 29, 2006, 10:38:45 AM12/29/06
to
I'm having a slightly different but related problem. I use Quicken. Quicken accepts downloaded transactions from online financial institutions in the form of a .qfx file. .qfx files are Quicken's version of ofx (ofx.net).

Now up until a few days ago I would log into vanguard.com and go to their "download transcations" section and click a button and a .qfx file would be downloaded and Quicken would be started to import this file. While there was a selection to "Do this automatically each time" and it was toggled I would constantly get prompted - so to me this is not "automatically". So I decide to remove the QFX file type in FF hoping that FF would prompt me again and I could re-establish this "FF downloads a .qfx file and automatically runs Quicken" behavior. No such luck.

Now instead FF doesn't prompt me at all rather it hands off the task to Free Download Manager to download the file, again without prompting at all.

I checked the qfx file type in Explorer and reset it back to use Quicken by hitting the restore button. Still FF does not want to prompt me about what to do with a QFX file, it just hands it to FDM. There is no QFX file listed in FF's file types.

I tried the File: Open from FF on a downloaded .qfx file but guess what FF does? Hands it off to FDM.

How do I get FF to not just hand .qfx files to FDM and to instead automatically hand them to Quicken?
-- 
Andrew DeFaria
Give me ambiguity or give me something else.

Nir

unread,
Dec 29, 2006, 10:49:23 AM12/29/06
to

just a suggestion : you can check this extension 'Launchy' :
http://gemal.dk/mozilla/launchy.html

Siddharth

unread,
Dec 29, 2006, 10:53:54 AM12/29/06
to
> Andrew DeFaria <http://defaria.com>

> Give me ambiguity or give me something else.
>
> --------------050806020000090506070507
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 1824
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
> <title></title>
> </head>
> <body bgcolor="#ffffff" text="#000000">

> I'm having a slightly different but related problem. I use Quicken.
> Quicken accepts downloaded transactions from online financial
> institutions in the form of a .qfx file. .qfx files are Quicken's
> version of ofx (ofx.net). <br>
> <br>

> Now up until a few days ago I would log into vanguard.com and go to
> their "download transcations" section and click a button and a .qfx
> file would be downloaded and Quicken would be started to import this
> file. While there was a selection to "Do this automatically each time"
> and it was toggled I would constantly get prompted - so to me this is
> not "automatically". So I decide to remove the QFX file type in FF
> hoping that FF would prompt me again and I could re-establish this "FF
> downloads a .qfx file and automatically runs Quicken" behavior. No such
> luck.<br>
> <br>

> Now instead FF doesn't prompt me at all rather it hands off the task to
> Free Download Manager to download the file, again without prompting at
> all.<br>
> <br>

> I checked the qfx file type in Explorer and reset it back to use
> Quicken by hitting the restore button. Still FF does not want to prompt
> me about what to do with a QFX file, it just hands it to FDM. There is
> no QFX file listed in FF's file types.<br>
> <br>

> I tried the File: Open from FF on a downloaded .qfx file but guess what
> FF does? Hands it off to FDM.<br>
> <br>

> How do I get FF to not just hand .qfx files to FDM and to instead
> automatically hand them to Quicken?<br>
> <pre>-- </pre>
> <a href="http://defaria.com">Andrew DeFaria</a><br>
> <small><font color="#999999">Give me ambiguity or give me something
> else.</font></small>
> </body>
> </html>
>
> --------------050806020000090506070507--

Editing mimeTypes.rdf can be of help. Need to enter the mimeType,
extension and the exe to use in the rdf file(in PROFILE Directory). It
worked for me.

Try to use any other ext(say .zip) than .qfx and FF shud give you the
required Dialog Box("Dop this automatically"). Now after changing go to
Tools->Options->Content->File Types->Manage or
Tools->Options->Download. You should get the "zip" entry. Now look for
the mimeTypes.rdf and change the mime type, extension and exe to your
"qfx". Restart FF and your qfx should be opened with your App.. :-)

Siddharth

Regards,
Siddharth

Siddharth

unread,
Dec 29, 2006, 10:58:48 AM12/29/06
to

Actually i need to provide the support at installation time of my app.
For IE, i am able to do this by inserting registry entry. Can a similar
thing be done for Firefox 2.0, so that it opens a file using external
app without any user involvement or editing mimeTypes.rdf..??

Regards,
Siddharth

Siddharth

unread,
Dec 29, 2006, 10:59:31 AM12/29/06
to

Thanks Nir..!!

Siddharth

David McRitchie

unread,
Dec 29, 2006, 11:12:07 AM12/29/06
to
"Nir" wrote:
> Siddharth wrote:
> > We need to associate file types with apps. We do not want this to be
> > done by user but instead make it automatic. One way is to edit
> > mimeTypes.rdf. Is there any other way..?? We want to include this as
> > installation procedure for our app.
>
> just a suggestion : you can check this extension 'Launchy' :
> http://gemal.dk/mozilla/launchy.html

Launchy is a great extension, but I would suggest that you
include the following in your optional launchy.xml file,
you might think of something better to call it for the label.
This will allow you to pick up the default application.

<application>
<label>Windows Explorer *1</label>
<type>1</type>
<command>c:\winnt\explorer.exe</command>
<arguments></arguments>
</application>

read http://gemal.dk/mozilla/launchy.html#xmlfile
and my own notes are at
http://www.mvps.org/dmcritchie/firefox/firefox.htm#launchy_notes

Frank Tabor

unread,
Dec 29, 2006, 11:56:00 AM12/29/06
to

A properly installed application will register itself with Windows, and
set the proper Mime type for its' files. No user intervention is required.

--
Frank Tabor
Kin, n.:
An affliction of the blood.

Andrew DeFaria

unread,
Dec 29, 2006, 3:29:58 PM12/29/06
to
Siddharth wrote:
Andrew DeFaria wrote:
I'm having a slightly different but related problem. I use Quicken. Quicken accepts downloaded transactions from online financial institutions in the form of a .qfx file. .qfx files are Quicken's version of ofx (ofx.net).

Now up until a few days ago I would log into vanguard.com and go to their "download transcations" section and click a button and a .qfx file would be downloaded and Quicken would be started to import this file. While there was a selection to "Do this automatically each time" and it was toggled I would constantly get prompted - so to me this is not "automatically". So I decide to remove the QFX file type in FF hoping that FF would prompt me again and I could re-establish this "FF downloads a .qfx file and automatically runs Quicken" behavior. No such luck.

Now instead FF doesn't prompt me at all rather it hands off the task to Free Download Manager to download the file, again without prompting at all.

I checked the qfx file type in Explorer and reset it back to use Quicken by hitting the restore button. Still FF does not want to prompt me about what to do with a QFX file, it just hands it to FDM. There is no QFX file listed in FF's file types.

I tried the File: Open from FF on a downloaded .qfx file but guess what FF does? Hands it off to FDM.

How do I get FF to not just hand .qfx files to FDM and to instead automatically hand them to Quicken?
Editing mimeTypes.rdf can be of help. Need to enter the mimeType, extension and the exe to use in the rdf file(in PROFILE Directory). It worked for me.


Try to use any other ext(say .zip) than .qfx and FF shud give you the required Dialog Box("Dop this automatically"). Now after changing go to Tools->Options->Content->File Types->Manage or Tools->Options->Download. You should get the "zip" entry. Now look for the mimeTypes.rdf and change the mime type, extension and exe to your "qfx". Restart FF and your qfx should be opened with your App.. :-)
Hacking mimeType.rdf doesn't sound pleasant. I would think if I deleted the type from the File Types: Manage then it should no longer be in mimeTypes.rdf and any subsequent download should prompt again. Ugh...
--
Andrew DeFaria
Work: 214-549-0855
Cell: 214-289-1959
I thought about how mothers feed their babies with tiny little spoons and forks so I wondered, what do Chinese mothers use? Toothpicks?

ashwi...@gmail.com

unread,
Jan 4, 2007, 1:29:07 AM1/4/07
to
Hi,
I am facing the same problem as Siddharth.
My application has the file type .hul. The application has been
packaged using InstallShield 6.31. The application when installed and
opened should be able to open in internet explorer and firefox. I could
open it in IE by registering the MIME type into the Windows registry.
But, I am not able to do the same for firefox 2.0.

Based on the suggestions in this group, manually changing the
mimetype.rdf works. But, I would like to include the .hul file type
while installing. Is there any way that I would do it?

Hope to get a fast reply.

Thanks,
Ashwini

> Andrew DeFaria <http://defaria.com>


> Work: 214-549-0855
> Cell: 214-289-1959
> I thought about how mothers feed their babies with tiny little spoons
> and forks so I wondered, what do Chinese mothers use? Toothpicks?
>

> --------------080007080109060102070900
> Content-Type: text/html; charset=ISO-8859-1
> X-Google-AttachSize: 3071


>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
> <html>
> <head>
> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
> <title></title>
> </head>
> <body bgcolor="#ffffff" text="#000000">

> Siddharth wrote:
> <blockquote
> cite="mid1167407634...@n51g2000cwc.googlegroups.com"
> type="cite">Andrew DeFaria wrote:<br>
> <blockquote type="cite">I'm having a slightly different but related


> problem. I use Quicken. Quicken accepts downloaded transactions from
> online financial institutions in the form of a .qfx file. .qfx files

> are Quicken's version of ofx (ofx.net).<br>
> <br>


> Now up until a few days ago I would log into vanguard.com and go to
> their "download transcations" section and click a button and a .qfx
> file would be downloaded and Quicken would be started to import this
> file. While there was a selection to "Do this automatically each time"
> and it was toggled I would constantly get prompted - so to me this is
> not "automatically". So I decide to remove the QFX file type in FF
> hoping that FF would prompt me again and I could re-establish this "FF
> downloads a .qfx file and automatically runs Quicken" behavior. No such

> luck.<br>
> <br>


> Now instead FF doesn't prompt me at all rather it hands off the task to
> Free Download Manager to download the file, again without prompting at

> all.<br>
> <br>


> I checked the qfx file type in Explorer and reset it back to use
> Quicken by hitting the restore button. Still FF does not want to prompt
> me about what to do with a QFX file, it just hands it to FDM. There is

> no QFX file listed in FF's file types.<br>
> <br>


> I tried the File: Open from FF on a downloaded .qfx file but guess what

> FF does? Hands it off to FDM.<br>
> <br>


> How do I get FF to not just hand .qfx files to FDM and to instead

> automatically hand them to Quicken?<br>
> </blockquote>


> Editing mimeTypes.rdf can be of help. Need to enter the mimeType,
> extension and the exe to use in the rdf file(in PROFILE Directory). It

> worked for me.<br>
> <br>


> Try to use any other ext(say .zip) than .qfx and FF shud give you the
> required Dialog Box("Dop this automatically"). Now after changing go to

> Tools-&gt;Options-&gt;Content-&gt;File Types-&gt;Manage or
> Tools-&gt;Options-&gt;Download. You should get the "zip" entry. Now


> look for the mimeTypes.rdf and change the mime type, extension and exe
> to your "qfx". Restart FF and your qfx should be opened with your App..

> :-)<br>
> </blockquote>


> Hacking mimeType.rdf doesn't sound pleasant. I would think if I deleted
> the type from the File Types: Manage then it should no longer be in

> mimeTypes.rdf and any subsequent download should prompt again. Ugh...<br>
> -- <br>
> <span style="font-size: 12pt; font-family: Tahoma;"><a
> href="http://defaria.com">Andrew DeFaria</a></span><br>
> <font color="Teal">Work:</font> 214-549-0855<br>
> <font color="Teal">Cell:</font> 214-289-1959<br>
> <small><font color="#999999">I thought about how mothers feed their


> babies with tiny little spoons and forks so I wondered, what do Chinese

> mothers use? Toothpicks?</font></small>
> </body>
> </html>
>
> --------------080007080109060102070900--

0 new messages