Re: Binary Decoding Question

Michael Gray (LabRat@i-link.net)
Sun, 24 Nov 1996 12:27:30 -0600

In article <2d8lyo3qBejT092yn@airmail.net>,
pcrown@airmail.net (Phil Crown) wrote:
>>I've heard on the a.b.sounds newsgroups that some newsreaders such as
>>Agent allow the user to hear the .wav once it's decoded. Is there a
>>way to accomplish this under Yarn? The same idea is supposed to work
>>for jpgs and gifs (and I suppose any other file type.)
>
>Possibly, if a .cmd file can be run inplace of the uudecoder in the
>global config, you could have a Rexx script decode then start the .wav
>player. Even if a .cmd file fails, "cmd.exe /c play.cmd" should work.
>
>For example, normally it looks something like this;
>
># program that decodes MIME message
>decode-mime=uudeview -io -p x:\tmp %f
>
>But you replace the above with this;
>
># program that decodes MIME message
>decode-mime=decodAndplay.cmd
>
>Then you create decodeAndplay.cmd which runs the decoder and wav
>player.
>
>rem -- decodAndplay.cmd --
>uudeview -io -p x:\tmp %f
>play.exe %f
>
>Hmmm, %f probably won't be the proper filename, you'll have to use
>SysFileTree or some method of finding the name of the *.wav, then play
>it.

This is exactly the sticking point. I don't do much REXX, so some
explanation of SysFileTree may help. And you seem to think all I'm
interested in is MIME, but most postings are UUdecoded, which MIME
shrugs its shoulders at. Maybe use '|' to pipe the message to the
.cmd file? Is there any way to pick up the filename from the UU
header or the MIME headers?
And a bit off the point, but I often get a .wav that kills the sound
under OS/2. Is there a way to re-enable sound without doing a reboot?
Or is this a problem with the player I'm using (jplay, a command line
wav player?) I pipe the directory to jplay to hear what's been
downloaded.

-- 
=============================================================================
* LabRat@i-link.net                  * Just because you're paranoid doesn't *
* Michael.Gray@1201.ima.infomail.com * mean they're not out to get you      *
=============================================================================
The world is a beautiful book, for those who can read it.