Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New to applescript: year of



I hope thas this one will work for you:

tell application "Mail"
set {laSource, laDestination} to {"zzz", "xyz"}
set k to count of messages of mailbox laSource
repeat with i from k to 1 by -1
set myMessage to message i of mailbox laSource
set myYear to year of (get date received of myMessage)
log myYear
if myYear = 2004 then set mailbox of myMessage to mailbox laDestination
end repeat
end tell

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: 
 >New to applescript: year of (From: Francis Derive <email@hidden>)
 >Re: New to applescript: year of (From: Yvan KOENIG <email@hidden>)
 >Re: New to applescript: year of (From: Francis Derive <email@hidden>)



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.