Re: When = == ?
Re: When = == ?
- Subject: Re: When = == ?
- From: Steve Mills <email@hidden>
- Date: Thu, 25 Sep 2003 15:05:56 -0500
On Thursday, Sep 25, 2003, at 14:24 US/Central, John W. Baxter wrote:
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.
Man, that was hard to read when all the things you claimed were "the
not equal thing" were replaced with spaces by the time it got to me. I
had to use thinking. :)
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.
Interesting. Since the code I found this bug in only breaks when I put
URLs that contain equal signs into my blog, I won't worry about it for
now. I just need to remember to test all links once it's published.
It'll get fixed when Apple fixes it, and I'd rather leave the speedy
and easier-to-read "offset of" code instead of switching to a loop.
Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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.