I ask on behalf of a friend of mine who is doing Reaper scripting (in Python).
Right now he does a kind of Jukebox (to be enhanced vastly in future).
For this, his script needs to command Reaper to load a wav file in a new item in a new track and play it. Works great.
For the next "disk" he needs to clean up before doing the same.
But he did not find an API call for "clean up" and deleting stuff results in prompts that can't be satisfied by the script.
IMHO, we should find answers to both questions:
- is there a simple way to clean up a project via a script ?
- how to avoid or satisfy prompts that are generated by dialogues that pop up when using the appropriate ReaScript API (or prevent the dialogues from popping up, at all) ?
what dialogue prompts exactly? I don't understand if you need to delete items, or files. It shouldn't be a problem.
You could invite your friend to come here and ask himself with more detail
Here the Facts:
I have a Python based UI for Reaper using a DB to maintain about 8000 recorded audio snipplets of phonecalls from a callcenter app.
Each snipplet is an mp3 file that should be loaded into a reaper track at track start to do some play and visual reviews on that file. That works fine so far in my app(via beyond ...).
When the next file should be analyzed, I have to cleanup the current Reaper project, no items no track anymore to start an analysis with the next file.
Question:
How do I force a clean project without hanging on prompts during track or item delete?