Sand bax is one of SU's defalt plugins ... you can easily edit or use the script. the .rb file is open source . it's located in :
Program..> SU...> Tools