• 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: Why is this so?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why is this so?


  • Subject: Re: Why is this so?
  • From: Christopher Nebel <email@hidden>
  • Date: Wed, 24 Jan 2001 16:53:11 -0800

On Wednesday, January 24, 2001, at 10:55 AM, Christopher Nebel wrote:

On Wednesday, January 24, 2001, at 09:35 AM, Michelle Steiner wrote:

On 1/23/01 11:59 AM, Bill Briggs <email@hidden> wrote

yeah, I know; I think it should work the other way, though. :)

Why? All you did was specify the boundary conditions for the text
range. Do you think that this should be enough to invoke an implicit
"invert string" operation?

Because the script provides a direction.

"1 through 4" and "4 through 1" are not the same to me.

We had an internal discussion about this a while back. I don't entirely disagree with you, but there are two major problems. First, there's no precedent for it -- the only thing in AppleScript problem is that there are a lot of cases where it's ambiguous what order the endpoints are really in.

Sorry, I accidentally sent this before I was done. What I meant to say was:

First, there's no precedent for it -- the only the thing in AppleScript that works that way is the "read" command. Second, you're allowed to have two different classes for the beginning and endpoints, and if they're different, there are a lot of cases where it's ambiguous what order the endpoints are really in. For example, consider "word 3 to paragraph 1", where word 3 is inside paragraph 1.

--Chris Nebel
AppleScript Engineering


References: 
 >Re: Why is this so? (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Beginner looking for SCRIPT EDITOR
  • Next by Date: Re: Why is this so?
  • Previous by thread: Re: Why is this so?
  • Next by thread: Re: Why is this so?
  • Index(es):
    • Date
    • Thread