It comes just days after similar legislation was scuppered at Westminster.
Hendry Sentenced For Harassing Ex
Former Scotland football captain Colin Hendry has been sentenced to a 12-month community order for harassing his ex-girlfriend
The 49-year-old will have to perform 100 hours of unpaid work as part of the order after he pleaded guilty at an earlier hearing to sending unwanted text messages - up to 10 a day - and emails to beautician Sarah Kinder.
Hendry had also admitted making unwanted visits to her home in Lytham St Annes, Lancashire, and twice threw stones at her bedroom window to get her attention.
The harassment began when Miss Kinder broke off their relationship in March and continued until April 18 when the ex-Blackburn Rovers defender was arrested by police on suspicion of assaulting her.
Hendry denied common assault and the Crown dropped that allegation against him earlier this month when Miss Kinder retracted her police statement.
Sentencing him at Blackpool Magistrates' Court, Deputy District Judge Alan Lloyd Jones pointed out that none of the communications were threatening or abusive as he said the case was "not so serious'' to impose a custodial sentence.
Hendry began seeing Miss Kinder following the death of his wife Denise, 42, in 2009 from botched cosmetic surgery.
Paul Schofield, representing Hendry, told the judge: "This year has been extremely difficult for him. You know about the family tragedy.
"In 2009 Mr Hendry's wife sadly passed away and Mr Hendry was left with four dependent children between the ages of 10 and 20.
"He has had a great deal to contend with as far as all that aspect with his life is concerned.
"He is determined that this case marks the end of what can be classed as a blip for him, in the last six months in total, and he can assure you - through me - that he will never transgress in any way again.''
Hendry, of Coopers Row, Lytham St Annes, was also ordered to pay £410 in court costs and charges.
Earlier this year, he received a 17-month road ban after he admitted drink-driving in his home town in the early hours of February 21.
Hendry enjoyed a long and successful playing career as a central defender and captained his country in the 1998 World Cup.
He played for a number of clubs including Blackburn Rovers, where he won a Premier League title, Manchester City, Bolton Wanderers and Rangers.
The officers were targeted as they responded to a call in the Knightswood area of Glasgow on Sunday night.
Jurors watched CCTV footage of Stefano Brizzi talking to officers at Lewisham police station following his arrest on April 7.
10,000 watched Andy Murray Live at the SSE Hydro in Glasgow last month.
Most Viewed Pictures On Heart
Recently Played Tracks
To listen live, choose your preferred location:
Deposit £10 to get a £40 Welcome Bonus - That's £50 to play bingo, slots and more!*
Over 50 tracks to make you feel-good. New album out now...
Find your local four day weather report here.
Make Heart the soundtrack to your day and you could be a winner with great prizes up for grabs throughout the day.
Find out more about some of the companies advertising on Heart Scotland- East.