| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
On 2006-09-28, at 03:02:25, Yvan KOENIG wrote:
Le 28 sept. 2006 à 10:46, Philip Aker a écrit :
On 2006-09-27, at 21:48:19, Yvan KOENIG wrote:
It's the first thing I tried but it failed.
set {laSource, laDestination} to {"zzz", "xyz"}
tell application "Mail"
set k to count of messages of mailbox laSource
if k > 0 then
repeat with myMessage in (every message of mailbox laSource)
set my_message to contents of myMessage
if year of (get date received of my_message) = 2005 then move my_message to mailbox laDestination
end repeat
end if
end tell
To fix this situation, place the id of the messages which meet the search criteria into a list.
When the loop is done, move the message ids in the list to the desired location. Then we can talk about optimization
Philip Aker
Thanks Philip Aker
But it seems that you missed what we already did:
Philip Aker email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-users/email@hidden
| References: | |
| >Re: New to applescript: year of (From: Yvan KOENIG <email@hidden>) | |
| >Fwd: New to applescript: year of (From: Yvan KOENIG <email@hidden>) | |
| >Re: New to applescript: year of (From: Francis Derive <email@hidden>) | |
| >Re: New to applescript: year of (From: Emmanuel <email@hidden>) | |
| >Re: New to applescript: year of (From: Yvan KOENIG <email@hidden>) | |
| >Re: New to applescript: year of (From: Philip Aker <email@hidden>) | |
| >Re: New to applescript: year of (From: Yvan KOENIG <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.