The broadcaster was giving evidence during an examination of facts hearing involving two former teachers at the private Edinburgh Academy.
The former Duke of York had launched a legal challenge against the force over the lawfulness of search warrants.