An easy way to work around OS X’s Gatekeeper restrictions and open apps you trust (Updated)

By default, OS X restricts the apps it will open to trusted sources. If you need to open a different app, though, there’s an easy workaround that maintains security.