Re: Wierd error
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.