The National Library of Scotland has digitized and made freely available online, their collection of honour rolls for WWI. These records are indexed alphabetically by either place or organization. The rolls contain names of casualties and those who fell in active duty.
The rolls are a collection from organizations such as schools, universities, clans, businesses and churches from across Scotland.
Here's the link: