Re: New to applescript: year of
Re: New to applescript: year of
- Subject: Re: New to applescript: year of
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 27 Sep 2006 12:21:06 +0200
Le 27 sept. 2006 à 12:06, Francis Derive a écrit : 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
It seems that some application's AppleScript's implementation is lazy.
This slightly modified code works for me:
repeat with myMessage in messages of mailbox "myMailbox" set myYear to year of ( get date received of myMessage) log myYear end repeat
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:
This email sent to email@hidden