An Upper West Side lawyer who allegedly tried to rob a bank in Greenwich, Connecticut, was arrested last week, authorities said.

Meighan McSherry, 46, who worked as a public defender in the Bronx, was charged Friday in connection with a holdup at a Wells Fargo bank on Putnam Avenue the previous day, the Greenwich Time reported.

McSherry allegedly gave the teller a note demanding money and stating she had a weapon, Greenwich Police Lt. Kraig Gray said. 

The suspect left the scene with an undisclosed amount of money, and an alarm went out just before 3:30 p.m.

"A description of the suspect and her vehicle was broadcast to area officers," Gray told the Time. "Within a few minutes, the suspect vehicle was observed on East Putnam Avenue near Church Street, a short distance from the bank. Officers stopped the vehicle and detained the female operator. Witnesses to the robbery subsequently positively identified the operator as the suspected bank robber, and she was placed under arrest. Evidence of the crime was found in the suspect’s vehicle."

Gray added that there were no injuries during the incident.

The Time reported that McSherry was charged with first-degree robbery and second-degree larceny. 

McSherry allegedly spent the previous night in Pound Ridge, New York, approximately 20 miles north of the Connecticut bank, but apparently had no memories after that, and no knowledge of how she ended up in Greenwich, her defense attorney, Jennifer DeCastro Tunnard, told the judge.

The New York Daily News spoke to McSherry's neighbors in The Bancroft, a 20-story co-op on West 72nd Street. They said the suspect had fallen on hard times, and twice the co-op had tried to evict her in the last year.

McSherry had worked as a Bronx Legal Aid attorney before taking a leave of absence a year ago, an agency spokesperson told the Daily News.

The suspect is now believed to also be behind an attempted robbery at a Chase bank near her home on Tuesday, a police source said.

As with the Connecticut heist, the suspect, described as a white woman around 45 years old, handed a note to the bank teller demanding money at the bank's Broadway and West 79th Street location.

The teller refused the suspect's demands, prompting the suspect to flee, sources told the Daily News.