View Single Post
Delete the corrupted OmniFocus.ofocus file from ~/Library/Application Support/OmniFocus, then open OmniFocus and revert to a backup (default location for backups is ~/Documents/OmniFocus Backups). Then run the script as described here.

This did the trick for me.