RE: Faster List Checking
RE: Faster List Checking
- Subject: RE: Faster List Checking
- From: Ken Tozier <email@hidden>
- Date: Thu, 29 May 2003 09:50:15 -0400
But, it can give incorrect results:
set logolist to "joe, jill, jim, fred, bobo, john, "
set AppleScript's text item delimiters to "ed, "
(count text items of logolist) > 1
--> true
Fred ain't Ed.
Jeff
True but there is a simple fix and you don't even need to use "text
item delimiters" unless there is some data associated with each name
set logolist to "joe, jill, jim, fred, bobo, john, "
if (logolist starts with "ed, ") or (logolist ends with " ed) or
(logolist contains " ed, ") -- space before the the last two eds
do ed stuff
else
do ed missing stuff
end
KT
_______________________________________________
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.