Playfair was a military cadet at
Addiscombe College, then joined the
Madras Army in 1846 at the age of 18. He became an artillery officer and with the rank of Captain was appointed to the Madras Staff Corps in 1858. He was promoted to Major in 1866, and left the army with the honorary rank of Lieutenant-Colonel in 1867. Playfair was assistant Political Agent at
Aden 1854–62, then Political Agent, then Consul, at
Zanzibar 1862–67, and was appointed Consul-General in Algeria in 1867. His territory was extended to Algeria and Tunis in 1885. He was knighted KCMG in the
Queen's Birthday Honours of 1886. He retired in 1896 and was given an
honorary doctorate by the University of St Andrews. He is buried in the churchyard of
St Andrews Cathedral with his wife Agnes Webster Ranken (1832–1918) and eldest daughter Agnes Mary Playfair. The grave lies at the foot of his parents' grave. ==Publications==