• 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
Coercing alias with foreign characters to Unicode text
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Coercing alias with foreign characters to Unicode text


  • Subject: Coercing alias with foreign characters to Unicode text
  • From: Martin Fuhrer <email@hidden>
  • Date: Sat, 8 Oct 2005 21:01:22 -0600

I'm trying to get the path of a file as follows:

set myAlias to choose file
set myPath to (myAlias as Unicode text)

This seems to work for the most part, but chokes on file names with certain foreign characters. For example, files containing the letters ěščřž (use the Czech keyboard layout, and type keys 2 to 6) produce an Applescript error on line 2:

Can't make alias "Users:mfuhrer:Desktop:eˇsˇcˇrˇzˇ.jpg" into type Unicode text.

File names including other foreign characters such as Thai work fine. Does this mean that Unicode text support is not fully working in Applescript, or am I doing something wrong? Thanks for any tips.

Martin

_______________________________________________
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: Coercing alias with foreign characters to Unicode text
      • From: Emmanuel <email@hidden>
    • Re: Coercing alias with foreign characters to Unicode text
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: Paths & quoted form & do shell script
  • Next by Date: Re: Wierdness converting path to file spec...
  • Previous by thread: Re: Wierdness converting path to file spec...
  • Next by thread: Re: Coercing alias with foreign characters to Unicode text
  • Index(es):
    • Date
    • Thread