How To: Make Firefox open an external program

By Nick Mead on 18 August, 2009

Have you ever clicked on a link in Firefox that's supposed to open an external application but it can't for some reason? I recently encountered this problem when clicking on a link for TVUPlayer for Mac. The error message reported:

Firefox doesn't know how to open this address, because the protocol (tvu) isn't associated with any program.

I tried the same thing on Firefox in Windows however and got a helpful "Choose Application" dialog that allowed me to select the correct application to open by browsing to it's location on my hard drive:

Launch Application dialog

The problem is when Firefox is asked to open something outside of the browsing environment on a Mac, it often needs a protocol which instructs it how to. This should be something that's easy to address in Firefox Preferences but unfortunately it's not. You have to access Firefox's hidden settings to fix the problem.

To do so, type "about:config" in the URL bar:

screen-capture-10.png

You'll probably receive a warning but just click "I'll be careful, promise!". What you then see before you is Firefox's "hidden" settings. CMD-Click on any of the entries in the list and select "New" and "String":

string.png

In the pop-up box that appears, type "network.protocol-handler.app.myprotocol" replacing myprotocol with the name of the application you want to open which in my case is "tvu" i.e. "network.protocol-handler.app.tvu":

screen-capture-12.png

In the second dialog, enter the location on your hard drive where the application can be found. On Windows, this is usually something like "C:\Program Files\TVUPlayer". On Mac however, I've struggled to workout how to define the absolute path to my hard drive and after several failures, I'm stuck with "/Applications/TVUPlayer". There's obviously something that goes before that in the path but I can't quite work it out (sorry Mac users, maybe you can help here!).

screen-capture-11.png

You'll now see your spanking new String listed in the list:

string2.png

That's it, you're done! When you next click on a link for the application in Firefox, it should open immediately or at least request if you'd like to open it.

Comments

  • abstract abstract

    Hi, Thanks. I'm looking for the same info, I'm on MAC and stuck at that point: making the link to /applications/TVUPlayer doesn't work (my app is actually TVUPlayer_OSX1.0) and keeps displaying the same error message. Any Idea how to solve this? Thanks

    • Sent on 30 Aug 2009
  • Nicholas Mead Nicholas Mead

    I'm afraid I can't get it to work on Mac either although it works fine on Windows. As I stated in the post, I think the secret could be working out how to define the absolute root path to your hard drive to enter in the String.

    • Sent on 31 Aug 2009
  • Maurice Maurice

    Maybe you can try like this: "/Applications/TextEdit.app" instead of just "/Applications/"? So, in your case, maybe this will work "/Applications/TVUPlayer/TVUPlayer.app"? And also, I suspect Mac's picky on a CAPS rule as well. You can use Terminal to check a "link" address by drag the program into the terminal window. Then copy and paste into a string for accurate with CAPS, etc.

    • Sent on 26 Sep 2009
  • Kasper Kasper

    Doesn't anyone know how to fix the Mac issue? I've tried the terminal thing with drag'n'drop the TVU-player.. The path should be fine, but the result is the same.

    • Sent on 04 Oct 2009
  • Nipperkin Nipperkin

    The path for mac (using TextEdit as our app) is: /Applications/TextEdit.app/Contents/MacOS/TextEdit It's spelled out here: https://bugzilla.mozilla.org/show_bug.cgi?id=454022 It works.

    • Sent on 17 Mar 2010
  • Mads Mads

    No need to get Firefox to open it. Just look at the number in the TVU-link. Ex. tvu://86727 Remember the number, open TVU, type in the number in the search field and enjoy your show.

    • Sent on 21 Oct 2010
  • Comment

Softonic on Facebook