"It was opportunistic and bound for failure," he said.
Judge Alistair Garland convicted Macdonald and sentenced him to 200 hours' community work for the burglary.
He was was also convicted and sentenced to 60 hours' community work (cumulative) for assault on October 11 and convicted and sentenced to 60 hours' community work (concurrently) for possession of utensils for cannabis consumption on August 18.