• 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: 10.2.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: 10.2.3
      • From: Takaaki Naganoya <email@hidden>
References: 
 >Re: 10.2.3 (From: Takaaki Naganoya <email@hidden>)

  • Prev by Date: Re: 10.2.3
  • Next by Date: Re: 10.2.3
  • Previous by thread: Re: 10.2.3
  • Next by thread: Re: 10.2.3
  • Index(es):
    • Date
    • Thread