 After she had written the script, Sofia Coppola (qv) was  heartbroken to discover that another company was already producing  an adaptation of the book themselves. However, they were not happy  with their script, so she showed them hers and they ended up using  it instead.