This Sketch plugin would convert selected artboards to 9patch layout, then export them to xxx.9.png at Desktop.