I didn't know anything about writing a screenplay, but somehow I ended up rewriting a screenplay.
or simply: