This reminds me of a problem I had a few years ago with opening files. I
fixed it with a Terminal command that clears and re-sets the
LaunchServices database.
Try this (all one line):
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister
-kill -r -domain local -domain user;killall Finder;echo "Open With has
been rebuilt, Finder will relaunch"
See <
https://apple.stackexchange.com/questions/118198/glitch-in-open-with>
The question is old but the useful answer from Tony Williams was posted
in January 2021.
I just ran it on macOS Big Sur and it still seemed to work (although my
"Open With" wasn't currently giving me problems).
Brian Gollands wrote on 2021-11-29 7:22 AM:
> Anybody else have a problem with TextEdit being invoked when
> double-clicking on a .txt file that is set to be opened with BBEdit?
> This has been an annoyance over several versions of the OS.
>
> All .txt files are set to BB and their file icons reflect this.
--
- Bruce
_bruce__van_allen__santa_cruz__ca_