EDIT: Still haven't found an answer for this. Here's the plist file which shows that the OS is reading .ts
files as MPEG video files rather than text files:
EDIT #2: I've tried restarting my computer with SIP off, but am still unable to edit the plist file.
I'm using a number of quick look applications to peek inside files from the Mac finder. This has been working great so far, and I've been able to add nearly every text file type that I work with routinely ... except for Typescript.
I've tried this method and it doesn't work because my system still views .ts
files as video files.
The .ts
file extension is read as an MPEG-2 video file of some sort. This is not a file type that I really ever anticipate using or working with. Is there a way to manually override the computer's builtin for the .ts
filetype, such that it's picked up as javascript, rather than as a video file?
You can see here that Apple is recognizing the .ts
file as a video file:
I went deep into the rabbit hole of editing file extensions and found that the system maps file extensions to their types in something called a .plist
file inside your System folder, at /System/Library/CoreServices/CoreTypes.bundle/Contents/Info.plist
and I thought that I could edit that file. But it turns out on Big Sur that System volume is read only. I'm sure editing this file would work (I can see what extension I'd have to remove) but I'm not sure it's the best approach.
Does someone have a better way of getting Mac's to recognize typescript files as text/javascript files?
csrutil disable
? – Outdoors.ts
started being used for video files at least 15 years before TypeScript has been created. – Naxos