Alternator causing bad idle?

My 89 dpfi idles perfectly until I turn the light on, then it drops to a point where it rattles the hell out of my car. The battery is brand new and the lights dim when the brakes are applied. It all sounds to me like the alternator is going bad but I don't want to replace it if it is something else.
Comments