I have a command line application (constructed with "cc -o app app.c")
which plays audio files. For concreteness, let's call the app mp3play.
It has no GUI, no nib etc, no event model. It's just a Unix app, in
fact it's the same app that runs on other Unices and Windoze albeit
with different audio playback code. "mp3play" runs fine in Terminal, produces nice sound, etc.
I'd like to associate "mp3play" with the file extension ".mp3" so
that when a browser encounters a file foo.mp3, it funnels the mp3
data into my mp3play.
In both MSIE and Opera, when I bring up the appropriate menu panel that
creates this association, and browse to the directory with the file mp3play, mp3play is indicated as a generic document (icon of page with corner turned down) and is grayed out, which is to say that these browsers won't accept mp3play as a valid executable.
Can anyone advise what sort of magic must be performed, and where,
so that these browsers will recognize "mp3play" as a valid helper
app?
I'm told that there are at least two system-wide file extension/type registries that associate apps with their files, but I'm not clear
as to how one enters new associations. Frex it'd be convenient as
well if double-clicking a file ".mp3" or of type "mp3" caused the
mp3player app to be launched.
(It's not in fact an mp3 player, so no need to point out that I'll
break things by reassociating ".mp3")
Thanks,
jim snyder