He also kicked the police officer after shouting and swearing at his mother, Inverness Sheriff Court heard.
Drug dealer had a similar value of drugs at his home, Inverness Sheriff Court heard.
He took it when a member of staff left the counter to go to the toilet, Inverness Sheriff Court heard.
Officers from the National Child Abuse Investgation unit raided the house and and found indecent images of children on a man's phone, the court heard.
The 23-year-old was twice arrested by police for having three knives.
Attacker had been hiding from officers in a cupboard when he was discovered.
He turned to cannabis to give him pain relief for a spinal and knee condition.
Ian MacKinnon was told his actions were "exceedingly foolish".
Inverness Sheriff Court saw a huge mix of criminal business in September.
The attacker unleashed a flurry of punches and kicks on his unconscious victim.
A 22 year old drunk Inverness man threw a stone and damaged a car windscreen before jumping onto the bonnet of another vehicle nearby.
A drunk customer at a Tesco in Inverness racially abused a security guard and later made homophobic comments to police, a sheriff court has heard.
Kyle Rossiter (23) jailed for five years and seven months for his role in the terrifying incident at a bungalow near Beauly.
The man was spotted acting suspicious trying to hide a toiletries bag when near another vehicle, then returning with a different package.
He attacked his pensioner mother and then damaged his grandmother's home during a four-hour stand-off with armed police earlier this year.
Four stores were hit by the 29-year-old, who has been jailed as a result.
The sheriff said: 'If the court tells you not to go near someone, you don't or you will go to jail.'
Sheriff issues warning as attacker avoids prison sentence.
She has committed 11 different offences since February this year.
The prosecution, who had initially told the defence that there was no footage, then found it and it was viewed on the morning of the trial.