Using openForWrite will clear the file anyway - there's no need to delete the contents first.
Hey, while you're still coming around this topic: You think, sometime, whenever you have time, you can update Macro Saver's code? I did my own update to use fileDelete, but I know you'd do a much better job than me. Adding fileDelete helped loadtimes on the GUI since it didn't have to open each file three times for checks.
A while back I made a test "color match" thing for the macro saver which worked quite well, but I don't remember whether it was officially added.