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

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.

References: 
 >Re: Weird error (From: John Fowler <email@hidden>)

  • Prev by Date: Re: Count and rename files
  • Next by Date: Re: Missing file date
  • Previous by thread: Re: Weird error
  • Next by thread: Re: Weird error
  • Index(es):
    • Date
    • Thread