In the heart of the city, a castle dominates the skyline from the top of a jagged rock face — Edinburgh is built to expect invaders. But few have been as welcome as the hordes that arrived last week.