There are a number of advertisements around the time which include "James Grant, writer, Inverness". In the same ads they note eg "Alexander Grant, writer to the signet, Edinburgh". So I think that would suggest James GRANT was not a writer to the signet.
eg Monday, June 8, 1801
Publication: Caledonian Mercury