list manipulation

I’m Stuck

i need to process say the first 5 items in a list then the next and the next and so on.
I just cant work out the repeat routine that would allow me to to this.
Could someone help

This sort of thing:

repeat with i from 1 to (count myList) by 5
	-- Do stuff with items i thru (i + 4) of myList.
end repeat

Thank you Nigel. Just what I needed. With addition of another line I can process the list in batches.


repeat with i from 1 to (count myList) by 5
	set this_item to item i of myList
	set itemsToProcess to (items i thru (i + 4) of myList) as list
	
end repeat