He also accused her of infidelity and controlled how long she could leave the house for.
Neighbours helped disarm and restrain the attacker.
The mother, who was going to collect her child, ran off in a panic to a nearby house and banged on the door for help.
A man has been placed on the Sex Offenders’ Register after an incident on an Inverness-Aberdeen train.
He also shouted and swore at the two detectives and threatened them.
"It was a terrible end to what was meant to be an enjoyable holiday," hears Inverness Sheriff Court.
The guitar player’s injuries mean he can no longer play the instrument.
On the same day, he also drove at pedestrians elsewhere in Inverness forcing them to take evasive action to avoid being hit.
He was caught after he communicated with the groups' decoys thinking they were children under 16.
His collection over an eight-year period also included more than 1000 still images.
The 36-year-old committed further offending while under a court order.
And Inverness Sheriff Court also hears that a local man was recruited to play a part in the supply chain.
But court heard he only had a fraction of that available to hand over to authorities.
A construction company boss narrowly avoided jail after a sheriff criticised his attitude, describing him as “full of self importance".
A sheriff told a man with a record for domestic violence that witnessing it as he grew up was no licence to commit similar offences.
A man ran off when police wanted to check if he was complying with a bail condition not to consume alcohol.
Sentence was deferred on a former Inverness man after he admitted threatening or abusive behaviour at his home.
A 26 year old man was congratulated by a sheriff for becoming a father just days earlier - and then banned from driving for a year.
A request to deliver a printer to his former partner landed a 37 year old Inverness man in trouble with the law.
A two year long non-harassment order was imposed on a landscape gardener after a court heard his former partner was "so scared" of him.