A paedophile who abducted a young girl as she walked home and sexually abused her for 27 hours has been granted leave to appeal against his sentence.

Andrew Miller, 53, who also uses the name Amy George, was dressed as a woman when he offered the primary school-aged child – whom he had never seen before – a lift in February.

He took the girl back to his house in the Scottish Borders and subjected her to repeated attacks, which a judge described as “every parent’s worst nightmare”.

At the High Court in Edinburgh last month, Miller was handed a 28-year extended sentence, comprising 20 years behind bars and a further eight spent on licence under supervision in the community.

At the same court in May, Miller had pleaded guilty to charges of abduction, sexual assault, watching pornography in the presence of the child under the age of 13, and possessing 242 indecent images of children.

The Herald: Andrew Miller (covered) being led from Selkirk Sheriff Court.Andrew Miller (covered) being led from Selkirk Sheriff Court. (Image: PA)

The Court of Criminal Appeal in Edinburgh confirmed on Friday that Miller has been granted leave to appeal against the sentence.

The appeal hearing will take place on December 5.

Sentencing Miller on October 18, judge Lord Arthurson described Miller’s crimes as “brazen and chilling” and “uniquely appalling”.

He said the offences were “abhorrent crimes” of the utmost “deviance and depravity” which were “the realisation of every parent’s worst nightmare”.

The court was told Miller is transitioning into a woman.

The child was locked in Miller’s home for 27 hours, during which time she was repeatedly touched, and also forced to watch pornography.

She eventually managed to dial 999 while Miller, who was wearing women’s underwear, was asleep.

After his arrest, three laptops were seized from his property and a total of 242 indecent images of children were found.

Miller, who had run a butcher’s shop, has been placed on the sex offenders register.

He has been held in the male prison estate following a row over the jailing of transgender rapist Isla Bryson who was sent to a female prison in February.

Bryson was later moved to the male estate.