GMT-Script Tool
This piece of software was developed to help write GMT scripts. It has text editing functionalities that e.g. add file names or paths, DOS routines (‘if’ questions or ‘do-loops’) or add gawk scripts in a predefined way. The tool works (at the end it is 'just' a text editor) but as it was written for GMT Version 4, some of the GMT code might produce an error when the script is executed. However, making the needed adjustments should not be a great problem. Give it a try and check once in a while if a new version has been uploaded.