[1][2][3] Ainslie worked in the Indian Civil Service at Bengal from 1807 to 1840, including as political agent at Blundlecund.
He continued his parents' work of planting vast numbers of larch trees in the valley, expanding the development and growth of Grizedale Forest.
[citation needed] He served as a Justice of the Peace, and was appointed a Deputy Lieutenant of Lancashire in 1852.
[7][8] Ainslie married firstly, in 1818, Sophia Mary, daughter of George Poyntz Ricketts.
In 1834, he married secondly Mary Ann, daughter of Colin Campbell, MD, physician-general in Bengal.