file can't be opened because it is from an unidentified developer
I have had this problem for years. I take an ordinary file (not an application) and change the "open with" application the Get Info dialog in Finder. Now, when I double-click the file, I get the message "<File> can't be opened because it is from an unidentified developer."
For instance, normally I have TIFF files set up to open in Photoshop, but I just changed a bunch of files to open in Preview instead. Now, when I double click on each of these files, I get the following messages.
1) Double-clicking gives this message
I then go to the Privacy settings in System Preferences, and I see this:
I click "Open Anyway" and I then get this message
This is crazy amount of security for an operation that is inherently secure. For instance, if I just were to drag the icon for the TIFF file onto the Preview app, Preview would launch and open the file without hesitation. So all this "security" is accomplishing exactly nothing.
How can Apple make a mistake like this?
Mac mini 2018 or later