[1] He was born in Aberfeldy,[1] (or Fortingall)[2] Perthshire, Scotland the son of James MacGregor and Isabella his wife.
[2] He married at York Place, Edinburgh, in December 1870, to Miss Mary Johnston.
In August 1870 MacGregor was appointed Professor of Mental Science in the University of Otago, N.Z., a post which he resigned in 1886.
[2] From 1876 to 1882 Dr. MacGregor was medical officer of the Dunedin Lunatic Asylum, and in April 1886 was appointed Inspector-General of Asylums and Hospitals in New Zealand.
This biographical article about a New Zealand academic is a stub.