I am puzzled about something with osX.
Why does it use the file extension for determining file type instead of
looking into the file for the type?
My Amiga used datatypes 15 years ago to determine what kind of file it
was. If it was jpeg but named .gif, no problem. The jpeg program loaded it.
For instance, I had a file on my desktop, an html file of instructions.
It had no file extension so appeared on the desktop as a blank white
rectangle. Re-named it 'html' so firefox showed up on the icon.
I just renamed it 'jpg' and GraphicConverter tried to open it. It
reported "The file 'foobar.jpg' is broken, the format is unknown or it
isn't a graphics file.
So, Graphic Converter can't open it."
Then it gives a file dump, in hex and ascii which clearly shows it to be
an html file.
Why aren't data types or mime types implemented in the user interface?
Are datatypes/mimetypes in the BSD itself? Cannot find it.
15. MIME to MAPI