• 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: bug in joining list items
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: bug in joining list items
      • From: Shane Stanley <email@hidden>
References: 
 >RE: bug in joining list items (From: "Scott Babcock" <email@hidden>)

  • Prev by Date: Re: bug in joining list items
  • Next by Date: Re: bug in joining list items
  • Previous by thread: Re: bug in joining list items
  • Next by thread: Re: bug in joining list items
  • Index(es):
    • Date
    • Thread