setstring !autosave YES

showdebug
; debugoff
question Pick a base filename
setstring filename dialog
setstring sq 0
SETACTIVESCREEN SEQUENCER
label loop
GETBUZZWINDOWTITLE
compare nfn songname
isnotequal die
LOAD!VARS
compare !autosave YES
isnotequal die
ACTIVATE
add 1 sq
setstring nfn filename

combine nfn sq
savebmw nfn

setstring !lastsaved nfn
SAVE!VARS

pause 10
goto loop

label die
endscript
