It does look like the referees call was wrong, but the Scots aren't covering themselves with glory with all their bleating.

They played very well (against a very shoddy Australia display. England and Wales would have likely won had the Wallabies performed like that against them)

However, the fact remains that Scotland had the game by the scruff of the neck. They had a throw from their own line out with three minutes to go. Any quality team would have thrown short, retained the ball and wound down the clock.

They botched their own line out badly, just as England did against Wales. It was that failure of execution that cost them the game, as they should not have ended up in a position where a tough decision may have gone against them at the death.