Sometimes vulgarity is not just acceptable but necessary in the workplace, the California Supreme Court ruled Thursday as it threw out a sexual harassment case by a former assistant on the "Friends" TV show.

The justices, ruling 7-0, agreed with Warner Bros. Television Productions that trash talk was part of the creative process and, therefore, the studio and its writers could not be sued for raunchy writers' meetings.

No jury would believe the writers' assistant was the target of harassment during profanity-laced script sessions "for an adult-oriented comic show featuring sexual themes," Justice Marvin Baxter wrote.

"Most of the sexually coarse and vulgar language at issue did not involve and was not aimed at plaintiff or other women in the workplace," Baxter wrote.

Amaani Lyle, 32, alleged six years ago that raw sexual remarks peppering work sessions and conversations added up to harassment against women.

Lyle said she was offended by repeated references to the actors' sex lives and to the writers' own sexual exploits as they penned the successful NBC sitcom rife with bawdy banter about six New York City friends.

She was fired after four months on the job, allegedly because she could not transcribe meetings fast enough or capture the flavor of the meetings.

Jeffrey Winikow, an attorney for the California Employment Lawyers Association that filed a brief in support of Lyle's suit, said the high court should have let a jury decide if the behavior was harassment.

"There was absolutely no evidence to link any of the conduct at issue with anything that occurred on the show," Winikow said.

Warner Bros. acknowledged that some of the sexually explicit talk took place but said it was vital to the chemistry of the show. The justices noted that Lyle had been warned when she was hired that explicit discussions were part of developing the sexually charged comedy.

Still, the court added that the same dialogue and behavior might be illegal elsewhere.

"Language similar to that at issue here might well establish actionable harassment depending on the circumstances," Baxter wrote.

The studio's attorney did not immediately comment Thursday. Warner Bros. Television Productions is a division of Time Warner Inc.