running screencapture command for os x