A man who claimed he drank 17 pints of beer on the night he grabbed a taxi driver by the neck and threatened him has been ordered by a judge to remain alcohol and intoxicant-free until his case is finalised.
Lloyd Smith (24) has also been ordered to come up with €1,500 in compensation for the taxi driver after he left him with bruising to his neck.
Judge Dermot Dempsey adjourned the case for payment of the money and a pre-sentence probation report.
Swords District Court heard the defendant was with another person when they got the taxi to St Cronan's Court, Swords - Smith's home address - just after midnight, after they had spent the evening socialising locally.
The defendant, who was a front-seat passenger, had words with the taxi driver and then grabbed him by the neck and threatened him, the court was told.
A struggle ensued and the taxi driver managed to force the defendant from the car.
The ordeal was captured on the taxi driver's dash cam and the second passenger, who had no part in the incident, gave gardai a statement.
Sgt Anthony Nulty told the court that the taxi driver received bruising but did not lose any money and did not need to seek medical attention.
Smith pleaded guilty to attempting to rob a taxi driver at his home address on November 11, 2017.
He had no previous convictions.
Defence solicitor John Hennessy said the defendant, who works as a part-time horticulturist, had drunk "16 to 17 pints of beer" on the night and made many expressions of remorse in his interviews with gardai.
Judge Dempsey said he will finalise the case in September.