Quaker Meeting House, Edinburgh.
Quakerism came to Scotland with the Cromwellian occupation of the 1650s and meeting houses were established in Aberdeen,Edinburgh,Kelso and Hamilton. It never grew to large numbers in Scotland due to persecution by Episcopalian and Presbyterian churches. Many therefore emigrated to North America from 1664.
Scottish Quakers and Early America 1650-1700 by David Dobson,Baltimore,MD,USA Genealogical Publications.1998 lists 500 Society of Friends members in Scotland and traces their movement to East Jersey in the 1680s.
Paul Burton who wrote a PhD "An Active and United Body;Change in the Society of Friends in Scotland 1800-2000 " has an extensive bibliography at http://personal.cis.strath.ac.uk/~paulfb/ScotBibl.htm
The National Archives of Scotland also has Society of Friends records under catalogue number CH10.