First performed and recorded by Bing Crosby (US #1 1944).
Other hit versions by Big Dee Irwin & Little Eva (US #38/UK #7 1963), Spooky & Sue (NL #2 1974).
From the wiki: “The Pop standard ‘Swinging on a Star’ was composed by Jimmy Van Heusen with lyrics by Johnny Burke, and was first introduced by Bing Crosby in the 1944 film Going My Way, winning an Academy Award for Best Original Song that year.
“Composer Van Heusen was at Crosby’s house one evening for dinner, to discuss a song for the movie. During a meal with the family, one of the children began complained about how he didn’t want to go to school the next day. Crosbyr turned to his son and said to him, ‘If you don’t go to school, you might grow up to be a mule. Do you wanna do that?’