I have a minor issue to bring up in here...
First, I love the script and I've used it to clear out several sectors (so far) of all the rubble, making the frame rates go better and space lanes safer to travel.
My problem is this... I use a complex with only an ore mine and silicon mine (to give me cargo space and products so the miners have something to go on for what to collect). The purpose is to assign several dozen mining ships to this complex for the sole purpose cleaning out sectors of rubble and selling the goods using CAG ships on the station. The mining ships fill it up, the CAGs empty it out. And so it goes...
The process works quite well until I run out of rocks in the sectors I'm mining. Usually it runs out of ore first, and then all my ships complain that there's no more ore to collect and they start a large search. But there's usually still a bit of silicon to mine, and that's probably the only thing left to mine.
But because the script is putting emphasis on station demand (and station demand might be for ore), then it's not finishing the work of cleaning out the silicon in the sector. I have to manually rename everything with the word "Silicon" in it to force the issue so I can finish cleaning the sector and move on to the next. This leaves me to rename everything back to a generic form for the next sector.
What I'd like to see it do is to check if there's nothing left to mine of a certain type in visible range, and if the station takes the other kind, to mine that instead. This would save me the trouble of renaming dozens of ships at a time...twice...to finish cleaning a sector.
BTW, I'm using the version from the bonus pack, if that helps.