I recently read (and very much enjoyed) The Night Men by Keith Snyder, which for some reason renewed my interest in Raymond Chandler. In a Chronology in the back of a Library of America omnibus edition of Chandler, I found the following:

1945: Begins writing original screenplay The Blue Dahlia for Paramount, which wants to make a film starring Alan Ladd before Ladd enters military service. Shooting begins before screenplay is finished; when Chandler falls seriously behind schedule, he proposed to producer John Houseman that he finish the script while drunk. Houseman agrees, and Chandler completes the screenplay in eight days, dictating to secretaries provided by the studio while receiving regular glucose injections from his doctor. [...] Chandler receives Academy Award nomination and Edgar award from Mystery Writers of America for his screenplay.