@barret55 - its likely not working because when its run through a policy its running the command as a different user, such as your Casper service account or root, not as the logged in user. OS X has gotten more strict with each new release about what it allows to be run as the logged in user when its being called by another account, especially when it comes to GUI operations.