Earlier quoted context omitted.
No, the fact that .TXT files got interpreted as HTML is worse.
Rigidly interpreting documents depending on their file extension is worse than trying to figure out the type of a document before interpreting it. File extensions are a brittle and primitive system that does not fix any security issue.
Man who thought opening a TXT file is fine thought wrong
231–240 of 316 posts
Re: Man who thought opening a TXT file is fine thought wrong
#232Earlier quoted context omitted.
Agreed. This problem exists because someone wrote a tool that should only do one (really well) and but instead made it do five different things.
According to you. I appreciate that TextEdit is a rich editor. I can use vim or countless other apps for plain text. Few do what TextEdit does with its simplicity.
Your opinion is that you like TextEdit for what it is.
Neither opinion/feeling is relevant.
Re: Man who thought opening a TXT file is fine thought wrong
#233Two words: excessive complexity. It's always seemed strange that an application called TextEdit is actually more than a text editor. I strongly believe that content-type autodetection, much less HTML rendering(!), most certainly does not belong in a text editor.
shoulda used 'cat
Re: Man who thought opening a TXT file is fine thought wrong
#234Meta comment: The custom scroll behaviour on that site is awful. I hate sites that try to "improve" the behaviour of scrolling by making it faster/slower than normal.
Re: Man who thought opening a TXT file is fine thought wrong
#235Mitigates `iloveyou`[1] virus type attacks on my system
Re: Man who thought opening a TXT file is fine thought wrong
#236Re: Man who thought opening a TXT file is fine thought wrong
#237> I found another browser trick that lets force-downloaded TXT files to be opened without user interaction or warning I wish there was more elaboration on this. Opening a downloaded file without user interaction sounds pretty bad.
That is Safari's default behaviour for ZIP files. Only to extract them, though.
Why is "force-download" even a thing? IMO the browser should always ask before downloading any file. Though this is not a unique Mac thing, I believe Chrome does that everywhere.
Re: Man who thought opening a TXT file is fine thought wrong
#238Two words: excessive complexity. It's always seemed strange that an application called TextEdit is actually more than a text editor. I strongly believe that content-type autodetection, much less HTML rendering(!), most certainly does not belong in a text editor.
Here's an interesting quirk in Windows: There are two APIs to execute external programs, CreateProcess and ShellExecute. CreateProcess is the older of the two and only runs executables. ShellExecute opens the target with whatever app is associated with the extension. When they shoehorned the ShellExecute behavior into cmd.exe, they basically just said "if (!CreateProcess(foo)) {ShellExecute (foo)}" As a result, if yo…
Re: Man who thought opening a TXT file is fine thought wrong
#239Meta comment: The custom scroll behaviour on that site is awful. I hate sites that try to "improve" the behaviour of scrolling by making it faster/slower than normal.
Re: Man who thought opening a TXT file is fine thought wrong
#240> Man who thought opening a TXT file in TextEdit is fine thought wrong
There are many, many text editors out there that would not attempt to parse HTML upon opening a text file.