• 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: When = == ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: When = == ?


  • Subject: Re: When = == ?
  • From: "John W. Baxter" <email@hidden>
  • Date: Thu, 25 Sep 2003 12:24:48 -0700
  • Envelope-to: email@hidden

On 9/24/2003 9:31, "Walter Ian Kaye" <email@hidden> wrote:

> At 08:07a -0700 09/24/2003, Paul Berkowitz didst inscribe upon an
> electronic papyrus:
>
>> On 9/24/03 7:40 AM, "Steve Roy" <email@hidden> wrote:
>>
>>> Steve Mills <email@hidden> wrote:
>>>
>>>> set cars to "="
>>>> return offset of "=" in cars
>>>> -->1
>>>
>>> I get 3. What version of AppleScript do you have? 1.9.1 here.
>>>
>>> Steve
>
> On 10.2.6 I get 1. Bug.
> On 7.6.1 I get 2. No bug.
>
>> As Steve Mills said, don't paste "!", type option-=. (It's this stupid list
>> server mucking up communication on this list yet again.)
>>
>> I get the same result (1) as Steve in OS 10.2.8/AS 1.9.1. It is a bug. I'm
>> not allowed to say what I get in a later not-yet-released version, but it
>> can be considered encouraging. ;-)
>
> I wonder when the bug was introduced. Anyone wanna test on 8.0 thru 10.1?

In what follows,  is the not equal thing; g is lower case c with cedilla.
I don't know what Entourage plus list software will produce.

This is more than just  vs =:
set c to "="
set ix to 1
repeat with ch in c
if "=" = contents of ch then display dialog ix
set ix to ix + 1
end repeat
offset of "" in c

= knows that  isn't =; offset of doesn't. 10.2.6; Script Debugger 3.0.6;
Applescript "1.9.1"


Now modify to

set c to "gc"
set ix to 1
repeat with ch in c
if "c" = contents of ch then display dialog ix
set ix to ix + 1
end repeat
offset of "g" in c

Both snippets display 2 but return 1.

--John (who could have used a different repeat loop, but didn't)
_______________________________________________
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: When = == ?
      • From: Steve Mills <email@hidden>
References: 
 >Re: When = == ? (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Going to be out of touch for a while
  • Next by Date: Re: When = == ?
  • Previous by thread: Re: When = == ?
  • Next by thread: Re: When = == ?
  • Index(es):
    • Date
    • Thread