https://www.slab.org.uk/guidance/criminal-legal-aid-applications-to-the-court/
Although you would normally apply to us for criminal legal aid in connection with solemn or summary proceedings, you must apply to the court for:
The court has the power to grant legal aid in the following circumstances:
Both the sheriff court and the JP court has the power [section 23(1)(b) of the Legal Aid (Scotland) Act 1986] to grant criminal legal aid where your client has been convicted but has not previously been sentenced to imprisonment or detention.
You cannot use Legal Aid Online for applications to the court.
You should use the CRIM/COURTAPP form to apply to the court for criminal legal aid:
First, you should satisfy yourself that a previous sentence of imprisonment or detention has not been imposed, by reference to the schedule of previous convictions and by checking with your client.
The court must be satisfied that:
If the court is not satisfied on these matters, it must refuse legal aid unless there is special reason for making it available.
The court does not have to consider whether it is in the interests of justice to grant legal aid. Additionally, the court may require that your client makes a statement on oath to ascertain or verify any material fact.
Where the court grants an application for legal aid, the court tells us and, after registering the grant, we notify you of this.
We deal with all other procedures relating to the grant. This may include:
The proceedings are subject to fixed payments and provisions relating to transfer of a certificate.
In certain circumstances, we or the court may decide to terminate criminal legal aid [regulation 18 of the Legal Aid (Scotland) Act 1986].