I'm sincerely glad that everything worked out fine and you're able to post about this.
I still disagree on the point that several have made about the assumption that you would have been robbed even if you had locked your car. We don't know that. Thieves are patient, they will wait in an area for a target of opportunity to present itself. We just don't know what would happen. Whatever the case, I like to stick with best practices for me. Even if leaving the car running worked out for you in this case (and I'm not convinced it did), I don't think that means that the best practice in the future is to leave the car running and open in case an armed thief approaches.
You're alive, that's what is important.
I'm not trying to Monday morning quarterback this...I'm just saying that we should view this as an example that even when we think we are safe, the opportunity for bad things to happen is still there. In a gated community, no less!
We don't have to walk around paranoid, but there are several small things we can all do to increase our situational awareness. Locking our vehicles, not unlocking our doors until we can see our doors, swinging wide around blind corners, walking in the center of parking lot aisles (when it won't get us run over, of course) and lots of other little things contribute to our situational awareness without becoming an inconvenience.
Or maybe it is just me and I'm paranoid. Maybe my paranoia has become my daily routine and I've gotten accustomed to it since I interact daily in an area that has lots of questionable foot traffic (due to my job). Maybe working around court systems and jails for contract jobs in the past has made me distrustful of people in general and I'm overly cautious.
Anyway...my main point is that I'm glad you're ok so we can have this discussion, and that one thing we can all agree on is that this is an example that we our safety is never guaranteed anywhere no matter how safe we may feel so situational awareness is key.