When running an app, you may encounter the following error:
When attempting to reinstall the app, the error persists.
To resolve, try running the following command from a terminal:
sudo xattr -rc /Applications/Application.app
Replace Application.app with the full path of the application that has the problem.
I had this problem when installing Wineskin Winery on a Mac OS X 10.8.5. A freshly downloaded copy immediately gave the error but after adjusting the attributes on the app, it worked properly.