A simple linux application for dads.
You simply connect the cradle to the CD by a string. And then you launch a shell script that takes care of opening and closing the loop drive. Here is the proof in a video.
For those interested, the code of shell script is as follows:
while :; do eject ; eject -t ; done