| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Le 28 sept. 2006 à 11:27, Francis Derive a écrit :
Hello Of course, I tried the "dereference on itself" tip before using "dereference to an other variable". I did the second one because the first one 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 myMessage to contents of myMessage if year of (get date received of myMessage) = 2005 then move myMessage to mailbox laDestination end repeat end if end tell the report claims: tell application "Mail" count every message of mailbox "zzz" 4 count every message of mailbox "zzz" 4 get item 1 of every message of mailbox "zzz" message id 84246 of mailbox "zzz" get date received of message id 84246 of mailbox "zzz" date "mardi 22 novembre 2005 21:31:04" move message id 84246 of mailbox "zzz" to mailbox "xyz" get item 2 of every message of mailbox "zzz" message id 84245 of mailbox "zzz" get date received of message id 84245 of mailbox "zzz" date "vendredi 18 novembre 2005 08:36:04" move message id 84245 of mailbox "zzz" to mailbox "xyz" get item 3 of every message of mailbox "zzz" message id 84155 of mailbox "zzz" get date received of message id 84155 of mailbox "zzz" date "vendredi 18 juin 2004 14:35:13" get item 4 of every message of mailbox "zzz" "Erreur dans Mail : NSReceiverEvaluationScriptError: 4" Yvan KOENIG |
_______________________________________________ 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 This email sent to 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: Francis Derive <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.