Re: Bad Characters from Unicode
Re: Bad Characters from Unicode
- Subject: Re: Bad Characters from Unicode
- From: Philip Aker <email@hidden>
- Date: Fri, 05 Oct 2007 19:43:33 -0700
On 2007-05-10, at 07:24, Sander Tekelenburg wrote:
[...] just "filename.U08" wouldn't tell you whether it's a text
file, a HTML file, a CSS file, a PHP, perl, sql file, etc.
That's essentially correct, but lots of apps scan the first few
lines of the file and make a reasonable guess.
Sure, but when you've got a directory full of .utf8 files, how do
you quickly tell the HTML ones apart from the CSS ones, from the
PHP and the Perl ones?
Greetings Sander,
For myself, I know that anything I have labeled .utf8, .utxt and .txt
is just arbitrary text and not formatted code. Except for one
circumstance (.applescript files [1]), I also know that all my
suffixed files like .sh, etc., are utf-8.
For scripting purposes, I've created MetaData.osax although I mostly
use it as search for files in a hierarchy by criteria rather than to
obtain file info.
The OS could indicate such distinctions through icons, I suppose --
maybe UTIs will get us there, some day (in October? :)).
One would hope the Cocoamites will finally wake up by that time.
Can't help but notice it's been remarked far and wide how ye olde
resource fork file type and creator provided a good solution much
more efficiently.
Philip Aker
email@hidden
[1] The AppleScript team (i.e. Chris Nebel) is aware of the problem
with .applescript when the encoding is utf-8.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden