This is what the Department of Justice in England say about disclosure in civil cases. I can't imagine the Scottish courts' view being much different.
"The purpose of “disclosure” is to make sure that both or all parties know of all documents that have a bearing on the case..
Here, “document” means any form of recorded information, not just writing on paper. It includes, for example, pictures, emails, mobile phone texts, social networking messages or video-clips.
You must disclose all relevant documents
that you now have or
that you have had or
that are held by someone else who would be obliged to give them to you or let you inspect them or have copies of them if asked or
that were held by such a person
You must disclose documents that are harmful to your case just as much as those that are helpful to it.
You must actively search for disclosable documents that you may have, though you may limit your search to what is reasonable."