Re: bug in joining list items
Re: bug in joining list items
- Subject: Re: bug in joining list items
- From: Paul Berkowitz <email@hidden>
- Date: Tue, 08 Aug 2006 16:33:10 -0700
- Thread-topic: bug in joining list items
On 8/8/06 4:03 PM, "Scott Babcock" <email@hidden> wrote:
> The thing that isn't OK is that the item that trips up the coercion is already
> of the requested type. An easier reproduction of this issue is this:
>
> set foo to {"This ", "is ", «data utxt0103» as Unicode text, " test"}
> return foo as Unicode text
> --> "This is "
Except that the AppleScript result of just
«data utxt0103» as Unicode text
--> a˘
shows the decomposed character and diacritic as two separate characters, in
Script Editor and Script Debugger, instead of
ă
as it should. That's a bug too, though probably of the AppleScript
decompiler in the script editors rather than of AppleScript itself.
Presumably if you're doing this in an application that display Unicode
correctly, you get the correct result. (Checks...) Yes, it works correctly
in Word.
tell application "Microsoft Word"
type text selection text («data utxt0103» as Unicode text)
end tell
--> ă
(Sorry to anyone whose email client doesn't do Unicode - this whole post
will probably look like nonsense to you.)
But still:
tell application "Microsoft Word"
set foo to {"This ", "is ", «data utxt0103» as Unicode text, " test"}
type text selection text (foo as Unicode text)
end tell
--> "This is "
--
Paul Berkowitz
_______________________________________________
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