Re: Corce alias with Unicode (Japanese) to string fails
Re: Corce alias with Unicode (Japanese) to string fails
- Subject: Re: Corce alias with Unicode (Japanese) to string fails
- From: Factory SS <email@hidden>
- Date: Thu, 14 Oct 2004 19:09:29 +0900
>This works on my machine (10.2.8).
>
>tell application "Finder"
>make new document file at desktop with properties {name:«data utxtD842DFB7»}
>end tell
>
>
>tell application "Finder"
> set a to (choose file) as file specification
> set b to name of a
>end tell
>
>
> -- this requires Smile
>set text of (make new Unicode window) to b
> -- the window displays the correct character
Yes, coercing file specification to unicode text works well.
But file specification is Finder exclusive and unable to get the file path easily.
About normalization, we can coerce composed/decomposed characters mutually
using "call method" in AppleScript Studio, but there's no AppleScript command
to do this.
SSFactory
<email@hidden>
_______________________________________________
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