McCartney said the song was inspired by Apple scruffs ( dedicated fans who would stay outside the Abbey Road studio and the homes of the Beatles ) , who broke into McCartney 's St John 's Wood home . McCartney said the song was inspired by Apple scruffs ( dedicated fans who hung around outside the Abbey Road studio and the homes of The Beatles ) , who broke into McCartney 's St. John 's Wood home .