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

Re: Wierd error


  • Subject: Re: Wierd error
  • From: Nigel Garvey <email@hidden>
  • Date: Wed, 24 Sep 2003 17:48:28 +0100

kai wrote on Wed, 24 Sep 2003 06:17:20 +0100:

>I believe John F's original problem may have something to do with a bug
>associated with certain types of encoded text:
>
>----------
>
>set text item delimiters to {""}
>set t to "BLOW, JOE" as Unicode text
>
>t's text items
>
>--> {"", "", "L", "O", "W", ",", " ", "J", "O", "E"}
>
>----------
>
>However, if the encoded string is coerced to plain text:
>
>----------
>
>set text item delimiters to {""}
>set t to "BLOW, JOE" as Unicode text
>set {text:t} to t as string
>
>t's text items
>
>--> {"B", "L", "O", "W", ",", " ", "J", "O", "E"}

Another good idea is to use the correct tools for the job. ;-)

set t to "BLOW, JOE" as Unicode text

t's characters

--> {"B", "L", "O", "W", ",", " ", "J", "O", "E"}

NG
_______________________________________________
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.

  • Prev by Date: Re: When = == ?
  • Next by Date: Re: 8-bit on mailing list (was Re: Wierd error)
  • Previous by thread: Re: Wierd error
  • Next by thread: Re: Wierd error
  • Index(es):
    • Date
    • Thread