How do I prevent capital ships from attacking missile platforms?

Your best bet may be to decrease their engagement radius to Near (or something like that) They won't ignore them completely, but they won't go haring off across the system to attack far-away platforms.