Still requires you to do a little bit of math, and to do any unusual offsets by hand, but run this a couple times, and you'll have a full tilesetdef file without the carpal tunnel.
http://pastebin.com/F2ZJt9EL