Mailing Lists: Apple Mailing Lists

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

New to applescript: year of



Bonjour,


I will learn with a book, but I can't help ask

why this doesn't work:

	repeat with myMessage in messages of mailbox "myMailbox"
		set myYear to year of date received of myMessage
		log myYear
	end repeat


when this works fine :

	repeat with myMessage in messages of mailbox "myMailbox"
		set myDate to date received of myMessage
		set myYear to year of myDate
		log myYear
	end repeat


Merci beaucoup.


_______________________________________________ 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


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.