Dear Robert,
I don't really use applescript, except for a few simple ones, so this suggestion may not be relevant. Reading your code, I (only) guess that when executing the loop,
repeat with i from 1 to mess count
removing an item from the loop
lead to a shift in all elements coming after. And since you also increment the counter (i), you skip the element that just took the place of theSource when the deletion occurred. Can you decrement the counter each time an element is deleted? Is mess count re-evaluated each time?
Jean
-----------Jean Suisse Institut de Chimie Moléculaire de l’Université de Bourgogne (ICMUB) — UMR 6302
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden
|