Christian Biesinger wrote: > naltrexone wrote: > > So I guess the question is > > just how, via javascript, to register 'firefox.exe' as the helper > > application for .z5... Is that possible to do? > > There's no nice & easy way :-/ The helper app dialog does it by opening > the pref panel and having it close immediately (sic) - > http://lxr.mozilla.org/seamonkey/source/embedding/components/ui/helperAppDlg/nsHelperAppDlg.js#566 > > And that dialog does it by using RDF APIs directly. (the function around > http://lxr.mozilla.org/seamonkey/source/xpfe/components/prefwindow/resources/content/pref-applications-edit.xul#96)
Works like a charm, thank you! Went ahead and just coded it up to talk to the RDF APIs. Only tricky bit left is getting the fully qualified filename for firefox.exe. Right now I'm registering the appPath for the helper app with the hardcoded path to my copy of Firefox. Obviously, though, that won't work in the general case. Is there a scriptable way to get that? _______________________________________________ Mozilla-netlib mailing list [email protected] http://mail.mozilla.org/listinfo/mozilla-netlib
