I have some files. wav in the object window, how can I save them automatically?

I found this script but I get an error:

directoryName$ = chooseDirectory$: "Choose a directory to save all the new files in"
if directoryName$ <> ""
    for i to numberOfSelectedSounds
       selectObject: sound [i]
       Save as WAV file: directoryName$ + "/sound" + string$ (i) + ".wav"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.