The witty and acerbic writer established herself as the screenwriter of influential romantic comedies such as "When Harry Met Sally" and "You've Got Mail," along with one of the few successful women directors in Hollywood.