John Cusack won a temporary restraining order Tuesday against a woman he claims has been stalking him for more than 18 months.

Emily Leatherman must stay at least 500 feet from the 40-year-old actor, his home, workplace, car and any company or office where he does business, Superior Court Judge Linda K. Lefkowitz ruled.

Cusack was not in court for the ruling.

Leatherman, who is identified in court papers as being homeless, could not immediately be reached for comment.

In court papers filed last month, Cusack said the 31-year-old woman "is showing unusual interest by stalking, throwing long letters of interest over my fence in bags with rocks and screwdrivers inside, making unannounced visits to offices of people I work with in an attempt to meet with me and listing my address as her own during a recent arrest."

The woman "threatens to commit acts of violence against herself if I do not help her," Cusack's court papers stated.

The star of "The Ice Harvest" and "Must Love Dogs" said he has never met Leatherman but her mail had been arriving at his home.