Environment: MacBookPro running macOS Mojave (10.14.6), with BBEdit 12.6.7 available.
Situation: An HTML file has been downloaded from a Website to my desktop via Firefox 71.0. Finder sees it (via File > Get Info) as an “HTML document,” to be opened with my Firefox (my default browser).
So what can be done with this file?
If I double-click it “as-is,” it opens in Firefox, as expected. But that’s not what I want to do with it; and as we’ll see below, that is also “too lenient.”
If I use Finder to do “File > Open With > BBEdit,” it opens in BBEdit as expected. That’s fine, but awkward.
Since I don’t want to have remember to use that tedious method in future work on this file, I use Finder (via File > Get Info) to change the file to open with BBEdit, expecting to be able to double-click to open. But surprise! When I double-click it, instead of the file opening I get this nasty message:
BUT the file is NOT an application, and I was not trying to open it as an application! Finder is being much too strict in not allowing the file to be opened. And if this behavior is somehow correct, then the behavior seen in steps 1 and 2 above is a security violation (i.e., too lenient).
What is even worse is that “File > Open With > BBEdit,” which worked perfectly well in step 2 (above), now doesn’t work – it produces the same nasty message!
If I use BBEdit, I can do “File > Open…”, select the file, and it will open nicely, without interference from an over-zealous Finder. If I then do “File > Save As…” to replace the original file with a new one of the same name, that doesn’t solve the problem. But if I do “File > Save As…” with a new name, then delete the original download, then rename the new file to the original name, I end up with something that looks just like the original file but can be opened in BBEdit via a double-click. What a pain!
What’s going on here?
Why does Finder (sometimes?) act as if opening a downloaded document file with an app is the same as opening a downloaded app?
Or, why does Finder treat a downloaded Firefox document differently from a downloaded BBEdit document?
Is this reasonable behavior, or not?
Carl S Zimmerman