Re: 10.2.3
Re: 10.2.3
- Subject: Re: 10.2.3
- From: Paul Berkowitz <email@hidden>
- Date: Thu, 19 Dec 2002 21:30:17 -0800
On 12/19/02 9:16 PM, "Takaaki Naganoya" <email@hidden> wrote:
>
Thank you for your advice. But the code above couldn't solve the probrem.
>
My whole testing code is like this.
>
>
>
tell application "Finder"
>
activate
>
set a to choose folder
>
set aPath to a as text
There's your error - of course 'as text' won't return accurate Japanese. It
returns mangled MacRoman string. Then it coerces the whole path to string
here:
>
set tempName to aPath & aFile
Since 'aPath' on the left is string, the concatenation, include the part on
the right representing the file name, now is string as well, instead of
Unicode.
Replace the earlier line by
set aPath to a as Unicode text
and you should be OK. Unicode text, not text. It should work now. Everything
else in the Finder block (including name, comment) is in Unicode, and Excel
also uses Unicode so you don't need any more coercions.
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >Re: 10.2.3 (From: Takaaki Naganoya <email@hidden>) |