• 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: Corce alias with Unicode (Japanese) to string fails
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Corce alias with Unicode (Japanese) to string fails
      • From: Emmanuel <email@hidden>
  • Prev by Date: Re: filemaker 7 scripting
  • Next by Date: Re: Corce alias with Unicode (Japanese) to string fails
  • Previous by thread: Re: Corce alias with Unicode (Japanese) to string fails
  • Next by thread: Re: Corce alias with Unicode (Japanese) to string fails
  • Index(es):
    • Date
    • Thread