Re: Delete Mail Script
Re: Delete Mail Script
- Subject: Re: Delete Mail Script
- From: Robert <email@hidden>
- Date: Wed, 07 Aug 2013 17:30:51 +0100
Hello Jean;
I've never 'studied' programming so it took me a while to work out what you meant. With the help of yourself, 'Santa' & 'Steve Bird' I'm getting a better understanding of what may be happening here.
(You all allude to the same issue)
Thanks,
Robert.
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