Princess Anne carried out several royal duties in Scotland this week.