REM open ANY file script... dedicated to stijn for the idea at buzzparty01
FILEBROWSE samples (*.*)|*.*
compare dialog \dialog
isequal die
setstring ext dialog
right ext 3
compare ext wav
isequal loadwav
compare ext mp3
isequal loadmp3
compare ext ape
isequal loadape
info Dont understand that format!
goto die
LABEL loadmp3
setstring lame "
combine lame !home
combine lame \tools\buzzscript\
combine lame lame" --decode --mp3input 
addspace lame 1
combine lame "
combine lame dialog
combine lame "
addspace lame 1
combine lame "
combine lame c:\__bs_temp.wav
combine lame "
debug lame
RUNANDWAIT lame
 pause 1
HOSTACTIVATE
SETACTIVESCREEN WAVTAB
ACTIVATE
VBKEY {F2}{F9}{TAB}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}
VBKEY {LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT} {PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{down}{up}{BS}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{DOWN}{ENTER}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{ENTER}
VBKEY c:\__bs_temp.wav
VBKEY {ENTER}
DELETEFILE c:\__bs_temp.wav
VBKEY {f2}{f9}{tab}{tab}
VBKEY %R
right dialog 33
left dialog 29
vbkey dialog
vbkey {ENTER}
INFO The script currently cannot edit the root note. It is adjusted similar to renaming a file in windows.
goto die

LABEL loadape
setstring lame "
combine lame !home
combine lame \tools\buzzscript\mac" 
addspace lame 1
combine lame "
combine lame dialog
combine lame "
addspace lame 1
combine lame "
combine lame dialog
combine lame .wav
combine lame " -d
debug lame
RUNANDWAIT lame
; pause 1
HOSTACTIVATE
SETACTIVESCREEN WAVTAB
ACTIVATE
VBKEY {F2}{F9}{TAB}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}
VBKEY {LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT} {PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{down}{up}{BS}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{DOWN}{ENTER}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{ENTER}
VBKEY dialog
vbkey .wav
VBKEY {ENTER}
setstring apetemp dialog
combine apetemp .wav
DELETEFILE apetemp
VBKEY {f2}{f9}{tab}{tab}
VBKEY %R
right dialog 33
left dialog 29
vbkey dialog
vbkey {ENTER}
INFO The script currently cannot edit the root note. It is adjusted similar to renaming a file in windows.
goto die


LABEL loadwav
HOSTACTIVATE
SETACTIVESCREEN WAVTAB
ACTIVATE
VBKEY {F2}{F9}{TAB}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}
VBKEY {LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT}{LEFT} {PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{PGUP}{down}{up}{BS}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{DOWN}{ENTER}
VBKEY {F2}{F9}{tab}{tab}
RIGHTCLICK
VBKEY {DOWN}{ENTER}
VBKEY DIALOG
VBKEY {ENTER}
VBKEY {f2}{f9}{tab}{tab}
VBKEY %R
right dialog 33
left dialog 29
vbkey dialog
vbkey {ENTER}
INFO The script currently cannot edit the root note. It is adjusted similar to renaming a file in windows.
goto die
LABEL die
ENDSCRIPT