A passenger who drunkenly tried to get on a Dublin Bus called the driver "a w**ker" after he was told it was out of service.
Alan McCabe (29) had "hit the bottle" on the first anniversary of his nephew's death.
Judge Patricia McNamara ordered McCabe to complete 80 hours of community service in lieu of two months in prison.
The defendant, of Allenton Avenue, Tallaght, admitted threatening and abusive behaviour at The Square shopping centre car park last October 27.
Gda Shauna Higgins told Tallaght District Court she was on foot patrol when she came across McCabe, who was trying to get on to a Dublin Bus that was not in service.
Gda Higgins said McCabe was shouting at the driver that he was a "w**ker" and demanding to be let on the bus as he was trying to get home.
Gda Higgins said McCabe was intoxicated, and when she spoke to him he tried to walk away as he "wasn't going to be f*cking arrested".
The court heard McCabe had 50 previous convictions, including for public order matters.
Defence solicitor Michael Hennessy said McCabe wished to apologise for his behaviour.
Mr Hennessy said the def-endant had a problem with alcohol, he accepted that and had some insight into his behaviour. He was back attending Alcoholic Anonymous meetings.
In relation to this incident, Mr Hennessy said McCabe "hit the bottle" and was drinking hard liquor as it was the first anniversary of his nephew's death.