While in Aberdeen William Gregory became intensely interested in the welfare of King’s College, and busied himself in trying to secure revenue from the government to found new chairs, but in this he was unsuccessful.
He taught Materia Medica in a house fitted up for a Medical School in Kingsland Place, and he had a good class, but from the witticisms of the students as to the effect of their professor’s preparation of muriate of morphia it is evident that William Gregory’s physical weakness was growing upon him, and that it was only with the most strenuous effort that he could get to his class at ten o’clock.
As his power of walking failed him, the professor found much solace in music, and sweet snatches of melody were carried across his old-fashioned garden to the ears of passers-by. He played beautifully, and his wife, who was a niece of Colonel Scott of Gala, added greatly to the charms of their musical parties. It is said that they were the first to shock the people of Aberdeen by playing secular music on Sunday.
To the Aberdonians, however, he gave a more serious cause for complaint—William Gregory was of a singularly childlike and trustful disposition, and he was intensely interested in the occult science of Spiritualism; the result was that he became the patron of a most undesirable throng of quasi-scientific humbugs, whose presence in their midst they resented with extreme frankness. There is a continual atmosphere of table-turning, mesmerism and magnetic flames in the tales extant about him, and though the narrators are tender about his memory, they have perforce to take up the attitude of counsel for the defence.
As a chemist, he undoubtedly came first in Scotland. He invented processes for the more perfect preparation of hydrochloric acid, muriate of morphia and oxyde of silver, besides making important observations on many other chemicals. He had an accurate command of practical chemistry, a power of condensation and clear expression, and a just perception of the value of discoveries, which made his writings unsurpassed for the use of students.
In 1844 Dr William Gregory realised the dream of his youth. After a sharp contest with Dr Lyon Playfair, he was appointed to succeed Professor Hope in his chair in the University of Edinburgh. ‘The chair was given to him,’ says Sir Alexander Grant, ‘under a new title, for the Town Council now judiciously omitted “Medicine” from its province, and elected Dr Gregory to be Professor of Chemistry.’
His health was much impaired, so much so, that people even went the length of saying that he was physically unfit for his new position, and it is at any rate true that his finest teaching was given to his students in Aberdeen. He was an able teacher, if at times erratic and absent-minded. His class was always kept wide awake, for with what alarms would not the professor bring back the straying imaginations of his audience! ‘Gentlemen,’ he would say, while with his long awkward fingers he lifted up the tube of some chemical before them, ‘If this were to fall, not one of you could reach the door alive;’ and then, considering the matter over, he would place the tube carelessly upon the edge of a plate, while the students near the doorway filtered through it, and the others, hat in hand, awaited the longed-for close of the lecture, feeling a fresh tremor with every approach of Gregory’s loose fingers to the fatal vial.
Good as his teaching was, the books which he wrote while in Edinburgh were his most valuable contribution to the Science of Chemistry. In the preface to the Outlines of Chemistry, which was published in 1845, he sketched the divisions which he intended to make in his subject for the fuller elucidation of the facts, and, had his health permitted him to carry out his plan, ‘the instruction from his class would probably have been more complete than from any other scientific chair in Europe.’ At the request of Liebig, he translated several of his more important books into English, and in the preface to the Familiar Letters on Chemistry, Liebig writes, ‘From his intimate familiarity with chemical science, and especially with the physiological subjects here treated, I am confident that the task could not have been entrusted to better hands than those of my friend Dr Gregory.’ Their friendship lasted throughout life, and only a few days before Professor Gregory’s death, he was propped up in his bed to write a pamphlet supporting some new theories of Liebig, which the German had just communicated to him.
Gregory’s appearance was most noticeable. He was of great proportions, obese, slouching and loosely hung together. In later years his body was a great burden to him, but the mind kept the mastery.
He was, like his father, a keen student of language, and would wile away many of the weary hours of forced inaction by the study of foreign tongues. French and German were to him as familiar as English. With a microscope, too, he did beautiful work, and was in his day, the greatest authority on the Diatomaceae. The slides which he made of these microscopic water-plants with their sculptured valves, were another resource of his declining years. He presented valuable memoirs on this subject to the Royal Society of Edinburgh, of which he was a member.