On the Records screen, you can change characters' AI packages through Customize -> Script. For mages, I'd recommend using "none." While this means they won't automatically attack with a ranged weapon once you get one, it gives you a lot more control over them. Mages work best when micromanaged.
Alternatively, you can toggle the AI off entirely by pressing A, or clicking the lantern icon in the bottom corner of the screen. This will disable it for EVERYONE, which can be good depending on what you're trying to do. I generally turn the AI off if I'm using a cleric to turn undead, for instance, so they don't cancel the action to attack someone instead.
Also remember that you can pause the game at any time to give orders. Pausing constantly and using the auto-pause options are the best ways to stay alive.
Post edited February 03, 2014 by bevinator