Code:
alias aplay {
  var %i 1
  if (!$window($eval(@ $+ $gettok($1-,2,64),2)).x) { /window -a $eval(@ $+ $gettok($1-,2,64),2) }
  while (%i <= $lines($gettok($+(",$1-,"),1,64))) {
    $iif($read($gettok($+(",$1-,"),1,64),%i) == $null,goto next,echo $eval(@ $+ $gettok($1-,2,64),2) $read($gettok($+(",$1-,"),1,64),%i))
    :next
    inc %i
  }
}


i tested it on:
/aplay readme.txt @test
/aplay <filepath> <window>

Last edited by pheonix; 04/08/03 04:31 PM.

new username: tidy_trax