In a recent interview Peter McDougall told The Herald Scotland that he has written a screenplay of James Hogg’s "Confessions of a Justified Sinner" and it's in the hands of Robert Pattinson.
McDougall has written a screenplay of James Hogg’s Confessions of a Justified Sinner. “I’ve got Tommy Gormley, who’s directing in America now, (Star Trek, Independence Day) and people such as Patrick Doyle agreeing to do the music, and Connolly and Coltrane have agreed to put their names to it. It’s currently with Twilight star Robert Pattinson, and Kelly MacDonald, who are looking at it. If Pattinson agrees it should go ahead.”
This is what Amazon.com says about the book
One of the supreme masterpieces of Romantic fiction and Scottish literature, The Private Memoirs and Confessions of a Justified Sinner is a terrifying tale of murder and amorality, and of one man's descent into madness and despair. James Hogg's sardonic novel follows a young man who, falling under the spell of a mysterious stranger who bears an uncanny likeness to himself, embarks on a career as a serial murderer. The memoirs are presented by a narrator whose attempts to explain the story only succeed in intensifying its more baffling and bizarre aspects. Is the young man the victim of a psychotic delusion, or has he been tempted by the devil to wage war against God's enemies? The authoritative and lively introduction by Ian Duncan covers the full range of historical and religious themes and contexts, offers a richer and more accurate consideration of the novel's relation to Romantic fiction than found elsewhere, and sheds new light on the novel's treatment of fanaticism. Copious notes identify the novel's historical, biblical, theological, and literary allusions.
via Rob & his Ladies
And if you think you'd like to have a read of it you can order it
In the US
In the UK