Re: alias as string = as Unicode text?
Re: alias as string = as Unicode text?
- Subject: Re: alias as string = as Unicode text?
- From: John W Baxter <email@hidden>
- Date: Sun, 19 May 2002 10:15:43 -0700
At 19:58 -0700 5/17/2002, Paul Berkowitz wrote:
>
Since alias format now works with file and folder names in Unicode, what
>
happens when you coerce an alias 'as string'? According to Script Debugger,
>
the result is "international text": is that as good as Unicode in this
>
context?
Almost certainly not. "International Text" is a pre-Unicode (pre wide
adoption of Unicode by Apple) format; type is "itxt". Value is some
leading bytes giving the "script" (the other meaning of script: Roman,
etc) and language, followed by the data.
Check the result in Script Debugger using the AEPrint formatting.
If the Unicode names are expressible in the old "itxt" format, then it's
possible that a coercion of the itxt string to Unicode text would produce
useful Unicode. But not if the itxt format can't hold the information...eg
an outer folder name is in French and another folder name is in
Chinese...the whole "itxt" string is in one langauge within one script, and
clearly that example doesn't fit.
I don't have any samples to work with, so all of the above (except the
"International Text" layout info) is from thought experiments.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.