Re: Weird error
Re: Weird error
- Subject: Re: Weird error
- From: Paul Skinner <email@hidden>
- Date: Wed, 24 Sep 2003 08:11:05 -0400
On Tuesday, September 23, 2003, at 09:44 PM, John Fowler wrote:
I am very grateful for the suggestions and am very aware that my 3-4
year old "Trim" handlers could use some dusting off. Just the same,
the question really is why did they work for so long then quit
working. The problem in my script actually occurs before the
TrimTheStringList handler is even called. It appears to occur in the
"get every text item" method. It appears to happen only with certain
input pages, not with straight input. I can't figure what would
account (diagnostically speaking) for that combination of features,
unless it is two error conditions or changes occurring at the same
time.
To facilitate my moving on, I have decided to accept the suggested
alternative "Trim" handlers provided by the people on this list and I
am grateful to them. I am left with a gnawing question about what
changed all of a sudden and made my script misbehave.
Thanks to all.
John Fowler
On Wednesday, September 24, 2003, at 01:17 AM, kai wrote:
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"}
Good memory, I'd forgotten that bug. After stepping through John's
script with his data, I can confirm that this is the problem.
So, there you go John, Unicode creep. Something that wasn't, now is.
PS
_______________________________________________
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.