Former aide to top SNP politician appears in the dock at Edi