How to process .au files

Kevin John Wang kwang at lore.acs.calpoly.edu
Wed Feb 8 14:37:10 PST 1995


>Steven R Fosdal (fosdal at phenxa.physics.wisc.edu)
>Wed, 8 Feb 95 07:02:20 -0800 

>
>What I do for .au files is slightly different. I have modified the Opener 

>source code so that it also understands the abbreviations:
>
># $f => the current filename including path
># $r => $f without any extensions
># $e => all the extensions (including the dot)
># $r => $f without any extensions extensions
># $t => the temporary filename; if $f = /a/b/c.suff, $t is /tmp/O_c
># $p/... => look for ... in the internal directory;
># e.g., $p/unsit => /LocalApps/Opener.app/unsit
>
>The $e and $r are my additions. Then in Opener.table I use:
>
>.au mv $f $r.snd && open $r.snd

Neat, but still has a minor problem: will not work if

Instead of taking the time to modify opener, here's a faster way of
listening .au files: 


>From Opener.table:
	.au     (mkdir $t; cd $t; ln -s $f $t/sound.snd; open $t/sound.snd)

Benefits:
	- since it uses "open", you can use some sort of GUI to play back the sound
	- it is MUCH faster than copying a 4 meg file!

Remember, to modify opener, you have to...
	1> add the above line to the Opener.table in the "Unpack" section (top of file)
	2> "open PB.project Controller.m"
	3> edit Controller.m and add an "au" to the openRequest method
	4> cmd-s (save) from Project Builder (to make your Makefile)
	5> build your project
	6> mv Opener.app/Opener /LocalApps/Opener.app/    ( only the executable has changed )
	7> rm -rf Opener.app obj  (to clean up)

You should also probably add a graphic type, but I'm too lazy at this point to
do that...  Also, does anyone know how to add a Service to Opener?  because
"open file.au" still doesnt' call Opener...I have to manually tell Opener
to open the .au file...  


Help?

   - Kevin


More information about the OmniWeb-l mailing list