@r.sander has written a script
and also the topic is discussed in this post (German but I thing Code is a single language)
Greets