Yes Georgew, the law in Scotland is very grey area. There are no laws specifically banning public nudity, but it is covered by the catch all public order laws.
If you are naked, whether in a public place or not, and can be seen by anyone else, and they complain to the police, the police would be obliged to investigate.
It would be down to the individual investigating officer, how they dealt with any situation, but if the officer asked you to desist in the "offending" behaviour, ie 'cover up', one should comply before any other action, as one may be arrested for Breach of the Peace, specifically, "for refusing to desist".
If it actually gets as far as court, which again depends on local policy, a sherrif may throw a case out as no case to answer, depending on the circumstances and situation.
I've never (yet!!!) been in that situation, but you do read about it in the press.