• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Delete Mail Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


On 7 Aug 2013, at 01:12, Jean Suisse <email@hidden> wrote:

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

delete theSource

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

  • Follow-Ups:
    • Re: Delete Mail Script
      • From: Steve Bird <email@hidden>
References: 
 >Delete Mail Script (From: Robert <email@hidden>)
 >Re: Delete Mail Script (From: Jean Suisse <email@hidden>)

  • Prev by Date: Re: Delete Mail Script
  • Next by Date: Re: Delete Mail Script
  • Previous by thread: Re: Delete Mail Script
  • Next by thread: Re: Delete Mail Script
  • Index(es):
    • Date
    • Thread