Screamplay (1984)
A detective investigating a series of murders discovers that they are similar to the slayings that occur in the new script of a Hollywood screenwriter