He published the following works:
- ‘Materia Medica of Hindostan,’ Madras, 1813, 4to,
- ‘Materia Indica; or Some Account of those Articles which are employed by the Hindoos and other Eastern Nations in their Medicine, Arts, and Agriculture,’ by Whitelaw Ainslie, M.D., M.R.A.S., London, 1826, 2 vols. 8vo. (This is an amended edition of the foregoing.) , ‘Clemenza, or the Tuscan Orphan; a tragic drama in five acts, Bath, 1822, 8vo; 2nd edition, 1823, *‘Observations on the Cholera Morbus of India.’ London, 1825, 8vo. (A rejoinder to this tract was published by James Morison, the hygeist, in the same year.)
- ‘Medical Observations,’ forming pp. 353—367 of vol. iii. of Murray's ‘Historical and Descriptive Account of British India,’ 1832, 8vo (vols. vi.—viii. Edinburgh Cabinet Library); new edition in 1844,
- ‘An Historical Sketch of the Introduction of Christianity into India,’ Edinburgh, 1835, 8vo., (In conjunction with A. Smith and M. Christy)
- ‘Report on the Causes of the Epidemical Fever which prevailed in the Provinces of Coimbatore, Madeira, Dinigal, and Tinivelly, in 1809—10—11,’ London, 1816, 8vo.