Re: What Was Scotty Doing There?
It could be a case of that the Enterprise was informed to expect a visit by Admiral Kirk and Scotty was sent to pick him up.
In terms of getting the Enterprise ready to launch it makes litte sense to send Scotty who should have been overseeing trying to get the ship ready to launch. Sulu would have been a better choice.
So perhaps Scotty had been on the station/Earth for some reason.
On the continent of wild endeavour in the mountains of solace and solitude there stood the citadel of the time lords, the oldest and most mighty race in the universe looking down on the galaxies below sworn never to interfere only to watch.