Coercing alias with foreign characters to Unicode text
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