Hi Brian,
The duti <https://github.com/moretension/duti> command line utility might
help you.
You can install it with Homebrew:
% brew install duti
Read the man page:
% man duti
To get default applications information for .txt files:
% duti -x txt
BBEdit.app
/Applications/BBEdit.app
com.barebones.bbedit
To set BBEdit as the default application for .txt files:
% duti -s com.barebones.bbedit txt all
HTH,
Jean Jourdain
On Monday, November 29, 2021 at 4:59:50 PM UTC+1 Ulrich Kapp wrote:
> Hi Brian
>
> Did you try to „First Aid“ from the Disk Utility App on your startup
> volume?
> This helped for me some years ago.
>
> You may also try to assign .text and .txt files to another application
> like Atom <https://atom.io> (Don’t forget to use „Change All…“!) and then
> set it back to BBEdit again.
>
> Otherwise you may want to delete the TextEdit App, because it’s mostly
> useless anyway…
> I could tell you how to do this. But without any warranty!
>
> Cheers!
> Ulrich
>
>
>
> Am 29.11.2021 um 16:22 schrieb Brian Gollands <[email protected]>:
>
> rMBP 2012 / OS10.15 / BBEdit 14
>
> 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. But
> double-clicking them or choosing Open opens them in TextEdit. Choosing my
> contextual command Open in BBEdit works OK. The latest straw was in using
> Hook's command to Make a New Note in BBEdit. It, too, makes the file in
> TextEdit.
>
> Have tried making a zip of TE and deleting the original (so I didn't lose
> it completely), but can't seem to do this even in Terminal due to some
> magical protection conveyed by its living in /System/Applications/ I guess.
>
> I have a lot of apps installed, but don't recall any other setting I've
> changed that would cause this. Is there a default text editor config I'm
> missing?
>
> Thanks for any help,
> Brian
>
>
>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "[email protected]"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to the Google Groups
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/6efc1994-b969-46b8-94b2-dffe73aa4909n%40googlegroups.com
>
> <https://groups.google.com/d/msgid/bbedit/6efc1994-b969-46b8-94b2-dffe73aa4909n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
--
This is the BBEdit Talk public discussion group. If you have a feature request
or need technical support, please email "[email protected]" rather than
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
---
You received this message because you are subscribed to the Google Groups
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/68ca7ab1-59cb-457a-8aee-3360c3d92b1bn%40googlegroups.com.