not sure if its a problem with my script or a bug... but:
Code:
alias mp3.search {
  if ($fopen(0)) && ($fopen(mp3list)) {
    if ($1 == -n) {
      .fseek -w mp3list $2-
      if ($2- != $fread(mp3list)) { .echo -q $input(Couldn't Find $+(",$2-,"),owd,Not Found) | return }
      .splay $fread(mp3list)
    }
    elseif ($1 == -w) {
      .fseek -w mp3list $+(*,$2-,*)
      if ($+(*,$2-,*) !iswm $fread(mp3list)) { .echo -q $input(Couldn't Find $+(",$2-,"),owd,Not Found) | return }
      .splay $fread(mp3list) 
    }
  }
}

then i use:
Code:
  ...$iif($fopen(0) && ($fopen(mp3list)),Normal,$style(2) $+ Normal) $+ : mp3.search -n $input(Search For?,eqd,Search)
  ...$iif($fopen(0) && ($fopen(mp3list)),WildCard,$style(2) $+ WildCard) $+ : mp3.search -w $input(Search For?,eqd,Search)

doesn't work.
from the help file:
Code:
/fseek <name> <position>

Sets the read/write pointer to the specified position in the file. The following switches may also be used to move the file pointer:

 -w <name> <wildcard>


so my /fseek -w's should work, but they dont, anyone see a problem or is it a bug, i think this is the bit that doesn't work:
Code:
.fseek -w mp3list $2-

and

.fseek -w mp3list $+(*,$2-,*)

any ideas greatly appreciated grin :tongue:


new username: tidy_trax