Re: Offset in list
Re: Offset in list
- Subject: Re: Offset in list
- From: jj <email@hidden>
- Date: Fri, 11 Feb 2005 14:19:15 +0100
on IndexOfItem(theItem, theList) -- credits Emmanuel Levy
set text item delimiters to return
set theList to return & theList & return
set text item delimiters to {""}
try
-1 + (count (paragraphs of (text 1 thru (offset of (return & theItem
& return) in theList) of theList)))
on error
0
end try
end IndexOfItem
jj
--
http://www.macscripter.net/
http://www.osaxen.com/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden