For the 1965 film adaptation, screenwriter Ernest Lehman repositioned this song to a later part of the film wherein Maria (played by Julie Andrews) and the children sing it as part of a marionette show they perform for their father. The song in place of "The Lonely Goatherd" was "My Favorite Things", which was originally sung earlier in the original musical in the office of the Mother Abbess, as a duet between her and Maria. The duet occurs just prior to Maria's departure to work for Captain von Trapp as governess to his seven children. The puppets appear only once in the film.