Re: New to applescript: year of
Re: New to applescript: year of
- Subject: Re: New to applescript: year of
- From: Emmanuel <email@hidden>
- Date: Thu, 28 Sep 2006 01:02:59 +0200
At 6:26 PM +0200 9/27/06, Francis Derive wrote:
I notice that, in the first and correct case, what is handled
from the mailbox is a "message" ( message id 331045 ), while in the
second case it is an "item" of the list "every message of mailbox
xxx" - without any clue of the error.
My advice is to always force dereferencing of the "item" in the first
place. If you don't do it yourself, AppleScript will do it each time
the variable is invoked in the loop, so if you use the loop variable
more than once in the loop you're improving speed.
repeat with myLoopVariable in someList
set myLoopVariable to contents of myLoopVariable -- dereference
once for all and be safe
Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden