I personally prefer to write small scripts and/or tools for my needs by myself because usually you find tools out there which come close to what you are looking for but do not exactly do what you want.
Sometimes you'll find an existing script you can modify.
Take a look at Egurra which might be a good template for you to start from and adopt it to your needs:
http://www.morenops.com/?p=673