• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Too many characters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Too many characters


  • Subject: Re: Too many characters
  • From: Luther Fuller <email@hidden>
  • Date: Thu, 30 Mar 2006 15:29:38 -0600

Christopher Nebel reported ...
That depends on the volume format -- it might be as few as eight. However, the usual file system is HFS+, for which the answer is 255 UTF-16 code units. (See <http://developer.apple.com/technotes/tn/
tn1150.html#HFSPlusNames>.) Because of various Unicode subtleties (notably decomposition; see "Unicode Subtleties" on the same page),
the number of "characters" might be much less than that.


2. What is the maximum number of characters in a file comment?

I don't believe this is documented anywhere, but I'll look into it.

TN1150 seems to be exactly the document I needed. I'm going to limit file names to 32 chars and comments to 64 chars because more than that is too much to read easily. This means that I will temporarily use 32 + 1 + 64 = 97 Unicode chars for the comment, which I think is safe. (At least the script is now working very well!) I took a quick look at "Unicode Subtleties" and I think I will have to read this in detail. Thanks!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Prev by Date: diskutil in shell script not working
  • Next by Date: Re: Finding a file
  • Previous by thread: Re: Too many characters
  • Next by thread: Finding a file
  • Index(es):
    • Date
    • Thread