SCOTLAND 'S most senior judge yesterday launched an unprecedented attack on the Lord Advocate , accusing the country 's top prosecutor of undermining the independence of the judiciary in the wake of the World 's End trial collapse .