I've been working on this little mod so far.
I was, not to say, pissed by the fact that my drones were staying with me in space for way too much time. And actually, looking at the timer in the aiscripts, it makes sense.
Si, I decided to improve that a little. Now, after 20 seconds in formation and with no enemy within 8 km, they will dock.
A little problem started to arise, my drones were not attacking the enemy capital ships...
I kind of found that script 'fight.attack.object.fighter.bigtarget' normally used for fighters. You know what? It work for drones too.
Video
Proof here. (2 min) (Patience, patience, I am still uploading.. But poor frigate)
Remember they are weak

Any way, here is it.
Download V0.2
Link
Mirror direct link (May or may not be available)
Thank you, and good game!