Can't open files with double click. An error occurs.
I can only open some files by double clicking it. When I double click it, an error apears:
"<file>" is damaged and can't be opened. You should move it to the Bin.
This happens for .pdf, .pptx, .numbers, etc. files. However, if I open Preview first and then go File->Open and open the file, it works just fine. It's the same with PowerPoint and Numbers.
This problem doesn't occur for all files. For some .pdf files, it opens normally by double clicking it.