Here is a simplified version of the script that illustrates the problem.
I'm surprised any of these work. The command "the end of myList" returns the last item, not the index of the last item.
In these cases I've always used -1 to indicate the last item of a list.
Also, "the" is almost always optional, but there are many cases where it would interfere. You wouldn't insert in inside a multiple word command, for example, which may be what's happening here. I'm just guessing the compiler is trying to sort out the difference between asking for the last item and the index for the last item, and does a pretty good job until it hits "the end".
HTH,
ES ------------------ set myList to {"a", "b", "c", pi as text, "finished"} --these work log (items 2 through end of myList) as text log (items 2 through (the end) of myList) as text log items 2 through end of myList as text log items 2 through (the end) of myList as text
-- This doesn't: log (items 1 through the end of myList)
-- but look at this log (the end) of myList |