home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
AmigActive 13
/
AACD13.ISO
/
AACD
/
Sound
/
LAME
/
MultiEncode.rx
< prev
next >
Wrap
Text File
|
1999-08-20
|
1KB
|
48 lines
/* MultiEncode.rx by Sigbjørn (CISC) Skjæret
** $VER: MultiEncode.rx v1.0 (20.08.99)
**
** Encodes multiple files using the supplied encoder/wildcards/options arguments.
*/
options results
parse arg encoder wildcards options
if(wildcards='') then
do
ver=word(sourceline(2),4)
say 'MultiEncode 'ver' by Sigbjørn (CISC) Skjæret'
say 'Usage: "MultiEncode.rx <encoder> <wildcards> (<options>)"'
say 'Examples: "MultiEncode.rx LAME.elf ~(#?.info) -b 160 -m f", "MultiEncode.rx BladeEnc.elf (#?.wav|#?.aiff)"'
exit
end
address command 'List 'wildcards' TO T:MultiEncode.tmp LFORMAT="%P%N" FILES'
call open(tmp,'T:MultiEncode.tmp',R)
num=0
do while ~eof(tmp)
line=readln(tmp)
if(line~='') then
do
num=num+1
file.num=line
end
end
call close(tmp)
address command 'Delete T:MultiEncode.tmp QUIET'
say 'Starting encoding of 'wildcards'...'
do i=1 to num
say
dot=lastpos('.',file.i)
if(dot>0 & dot>length(file.i)-5) then dest=substr(file.i,1,dot-1)
else dest=file.i
address command encoder''options' 'file.i' 'dest'.mp3'
end
say
say 'Done.'
exit