Re: Coercing alias with foreign characters to Unicode text
Re: Coercing alias with foreign characters to Unicode text
- Subject: Re: Coercing alias with foreign characters to Unicode text
- From: Emmanuel <email@hidden>
- Date: Sun, 9 Oct 2005 12:49:52 +0200
Title: Re: Coercing alias with foreign characters to
Unicode text
At 9:01 PM -0600 10/8/05, Martin Fuhrer wrote:
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:escrz.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.
Very bizarre. I don't have the latest OS (running 10.3.9) but
this works for me (I use Smile):
set myAlias to choose file
set myPath to (myAlias as Unicode text)
-- "emmanuel's hd30:Users:emmanuel:Desktop:misc
tests:ûãÞÏ"
What's your OS?
Emmanuel
_______________________________________________
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