Re: Corce alias with Unicode (Japanese) to string fails
Re: Corce alias with Unicode (Japanese) to string fails
- Subject: Re: Corce alias with Unicode (Japanese) to string fails
- From: SS Factory <email@hidden>
- Date: Thu, 14 Oct 2004 14:33:29 +0900
> on Wed, 13 Oct 2004 18:34:51 +0900, Takaaki Naganoya wrote:
>
> ----Right pattern in converting Japanese file name as Unicode
> tell application "Finder"
> set a to choose file
> set b to name of a
> end tell
>
> set b1 to b as string--this operation is very important
> set b2 to b1 as Unicode text
>
> set c to count every character of b2
> -----------------------------------------------------------
This script fails when the file name contains surrogate pair.
It returns wrong result if you choose the file created by following script.
tell application "Finder"
make new document file at desktop with properties {name:<<data
utxtD842DFB7>>}
end tell
Coercing alias to unicode text also fails when the file name or path
contains surrogate pair.
I hope this will be fixed in next release of AppleScript.
SSFactory
<email@hidden>
_______________________________________________
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