Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

How do you set the default app to open a Text/Plain attachment?


When I receive attachments from Windows users which are Text/Plain, and with no common suffix like .DOC, .TXT, etc I have to:


Control Click on the filename

Select Open Attachment

Choose TextEdit from Applications


These attachments are identified by the URL coding as Text/Plain and having to go through this process every time is wearing, and having the Mac tell me there is no default application to open this type of file makes no sense. Why wouldn't TextEdit be the default for Text/Plain?


I am running El Capitan and none of the techniques I know which allow me to change/set default applications to open files apply, because you need to identify the file. Attachments are not visible to Finder.


Search has found https://discussions.apple.com/thread/968655 which would let me "make Plain Text the preferred alternative for viewing messages" using Terminal but that is overkill, I don't want to open everything in plain text, only attachments which are identified as Text/Plain.


Does anybody know how to set TextEdit as the default to open Text/Plain attachments?



Posted on May 19, 2019 9:53 AM

Reply

Similar questions

4 replies

May 19, 2019 1:33 PM in response to Eric Root

Good idea, and it works as a specific solution for the suffix. Attachments with the same suffix will open on double click with TextEdit but text/plain attachments with a different suffix still require my selecting TextEdit to open the attachment.


I believe the association has to be defined in Mail for mediatype, so that all files of the text/plain mediatype will be opened with TextEdit (see https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URls for MIME mediatypes)


Mail handles text/html, base64, image/ etc fine but for some reason or other it croaks on text/plain which is the default MIME mediatype.


That Mail does not process text/plain correctly seems more like a deliberate decision rather than an oversight, so am hoping someone know of a setting somewhere which can be changed/modified.



May 21, 2019 10:16 AM in response to VikingOSX

"The operating system decides what file extensions are openable by TextEdit...."


My question has nothing to do with the operating system or file extensions, it is email.


The email application decides what to do with an attachment according to the MIME mediatypes defined by an Internet Assigned Numbers Authority (IANA) standard. See https://en.wikipedia.org/wiki/Media_type


The Mozilla page was referenced because it has a succinct explanation of what Text/Plain is.


Mail is the only email application I use which does not open Text/Plain emails with a text editor on double click.


Some applications don't even require you to double click the attachment. Thunderbird will open Text/Plain attachments with a text editor if you want to double click but you don't have to, the application presents the text below the attachment's name.


Mail handles other Mime mediatypes correctly, but it does not open Text/Plain on double click on my machine under El Capitan.


How do you set the default app to open a Text/Plain attachment?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.