A man who has hepatitis C deliberately smeared his infected blood on police at a Perth DIY shop.

Scott Townsley told police he "had the virus" and "was going to infect them all" when he launched the attack at the Wickes store at St Catherines Retail Park in Perth.

Townsley wiped blood on the face of one officer and scratched another, causing him to require repeated blood tests to check for infection, the results of which are still unknown.

When he appeared in court the next day Townsley, 40, a prisoner at HMP Perth, also spat at the procurator fiscal depute who had asked for him to be remanded in custody due to his record for theft, housebreaking and breaching court orders.

He spat more than 10ft across Courtroom Four at Perth Sheriff Court, bringing proceedings to a halt and closing the courtroom until it underwent a deep clean.

The female prosecutor involved, the mother of a young child, was left with an anxious wait to see if she had been infected.

Blood taken from her afterwards came back negative for infection, though she will require another test after six months.

Fiscal depute Saima Rasheed told Dundee Sheriff Court: "On March 20, the accused entered the Wickes store in Perth, where bail conditions were in place for him not to enter the store.

"Staff contacted police who attended and he became aggressive.

"Due to his aggressive behaviour he was retrained to the ground whereby he was injured.

"An ambulance was requested and an officer attempted to administer first aid but the accused remained aggressive.

"While on the floor the accused wiped his hand on the back of his head causing it to be covered in blood.

"He was warned to keep still and keep his hands away from police but deliberately wiped his hand on the face of one officer, causing blood to be transferred to said officer.

"Accused was helped to his feet and escorted to a police van where he continued his aggressive behaviour.

"While being held he assaulted another officer by scratching his left arm with his fingernails, opening up the skin and causing it to bleed.

"Due to the accused being a carrier of hepatitis C the officer was conveyed to Perth Royal Infirmary who took blood tests and prescribed a week's worth of antiviral medication to combat the effects of blood borne viruses.

"He required blood tests six weeks, 12 weeks and 24 weeks after exposure and is still undergoing these tests so has not had any results back.

"The accused also purposely spat at another officer, striking her on the face with some entering her mouth.

"He stated he had 'the virus' and was going to infect them all.

Townsley, pleaded guilty on indictment to one charge of breaching bail and four of assault committed on March 20 and 21.

Sheriff Alastair Brown jailed Townsley for two and a half years for the assaults on the police officers, and a further two and a half years for the attack on the prosecutor to be served consecutively.

He said: "Assaults involving bodily fluids of any kind are disgusting.

"They involve a great deal of anxiety for the victim and it is clear from your comments that you intended to cause that.

"Anyone who assaults anyone else engaged in a public duty can expect to go to jail."