• 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: offset with spaces confusion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: offset with spaces confusion


  • Subject: Re: offset with spaces confusion
  • From: Christopher Nebel <email@hidden>
  • Date: Fri, 3 May 2002 07:41:54 -0700

On Friday, May 3, 2002, at 03:24 AM, email@hidden wrote:

If I do this:

ignoring white space
"abc" is in "a b c d"
-->true
end ignoring

I get the answer I expected. So why don't I get the answer I expect with
offset:

ignoring white space
offset of "c" in "a b c d"
-->8
end ignoring

I assume this means offset ignores the ignoring statement. Is there a
logical reason or is this a bug?

"offset of", along with all other scripting additions that I know of, ignores all considering/ignoring blocks. Whether this is a bug or because of a logical reason depends on your viewpoint -- it has to do with a basic architectural design flaw. The flaw was fixed in AppleScript 1.7, but changing the scripting additions creates compatibility problems, so we're still considering how to fix them.


--Chris Nebel
AppleScript Engineering
_______________________________________________
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.

  • Follow-Ups:
    • Re: offset with spaces confusion
      • From: Chris Page <email@hidden>
  • Prev by Date: Re: File Size
  • Next by Date: Re: Excel: newby question
  • Previous by thread: offset with spaces confusion
  • Next by thread: Re: offset with spaces confusion
  • Index(es):
    • Date
    • Thread