There isn't a script to do this, but you can write one to do it.