Do it manually, it is not worth scripting around. Well maybe google a bit there may be script that does what you need.