A rejected lover stalked his ex partner for months following the break-up of their 11-year relationship.
Ryan Morton bombarded his former partner with unwanted phone calls and text messages.
The 27-year-old repeatedly went to Cassy Fowler’s home and accused her of cheating on him.
Livingston Sheriff Court heard that Morton was heavily addicted to cocaine and alcohol at the time.
When he appeared for sentence on Friday, Morton was said to be “embarrassed, sorry and disgusted” with his behaviour.
He earlier pleaded guilty to engaging in a course of conduct which caused Miss Fowler fear or alarm between May 1 and August 13 this year.
He admitted repeatedly making unwanted phone calls and sending unwanted texts to her and her family.
Alisdair Macleod, prosecuting, said Morton’s messages started with simple requests to speak to his ex.
But they rapidly escalated into demands to know who she was with and whose car was parked outside her home.
Michael Lowrie, defending, told the court: “He had a very serious addiction to cocaine and alcohol.
“Drugs and alcohol had a significant impact on his mental and physical health.”
Mr Lowrie added: “The reports suggest he’s remorseful. He realises he may well be drinking at the ‘Last Gasp Saloon’ as far as his liver is concerned.”
Sheriff Peter Hammond told Morton: “This was a serious and upsetting course of conduct for the lady who was the object of your unwanted attentions.
“You have previous convictions for domestic disorder and stalking. This is conduct which will have to stop.
“If you fail to take the opportunity I’m giving you, the only possible outcome will be a custodial sentence.”
Morton, of Bowhouse Stables near Falkirk, was made subject to a two-year non-harassment order, under supervision.
He was also compelled to undertake counselling for domestic violence and 160 hours of unpaid work.