Actress Amanda Bynes appeared in court briefly Friday morning after a wild Thursday night confrontation with police at her New York apartment. Bynes was released from police custody until a July 9 court date.

According to NBC New York, Bynes' lawyer told the judge she had never been in any trouble before, and the actress was warned that another arrest or failure to appear would lead to "significant bail." Prosecutors had asked for $1,000 bail on this case but the request was denied, E! Online reports.

In a photo obtained by NBC New York, Bynes , 27, wore a mussed long blond wig for her court appearance. A mug shot revealed close-cropped hair without the wig. Bynes showed off a half-shaved head in photos she shared on Twitter in April.

A doorman in Bynes' Manhattan high-rise reportedly called police Thursday night and said she was smoking marijuana in the building's lobby. When police went to Bynes' 36th floor apartment, they reportedly smelled marijuana and saw the actress throw a bong out the window.

She was taken into custody and charged with tampering with physical evidence, reckless endangerment and criminal possession of marijuana.

Bynes' lawyer denied in court that she threw the bong and said police entered her apartment illegally. Bynes told the police that the glass pipe was "just a vase," The New York Daily News reports. It was not recovered by police.

Bynes is on probation for three years for driving with a suspended license and also has a DUI case pending in southern California.