How to automate cutting the part with audio on a certain track out?
This guy did essentially the opposite of what you're trying to do. However, he posted the source-code here. So with a little bit of IT-finesse, you should be able to reverse the program's understanding of what to edit out - meaning that the code shouldn't say (in a very simplified, theoretical syntax):
if track5dB &lt; 5dB:
{
cutThisOut();
}

but instead:
if track5dB &gt; 0
{
cutThisOut();
}

Now, I haven't personally checked out the code in detail, so I cannot 100% vouch for it to work, but it might just be worth a try.