 Additionally, the film was nominated for three Academy Awards, two to Randy Newman for Best Music—Original Song, for "You've Got a Friend in Me", and Best Music—Original Musical or Comedy Score.It was also nominated for Best Original Screenplay for the work by Joel Cohen, Pete Docter, John Lasseter, Joe Ranft, Alec Sokolow, Andrew Stanton and Joss Whedon, making it the first animated film to be nominated for an Academy Award writing category.