Andrew Considine and Sam Cosgrove were on target for Aberdeen to secure the win and three points for the Dons at Almondvale.