• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Fwd: New to applescript: year of
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: New to applescript: year of


  • Subject: Fwd: New to applescript: year of
  • From: Yvan KOENIG <email@hidden>
  • Date: Wed, 27 Sep 2006 15:23:02 +0200


Here is an enhanced one

set {laSource, laDestination} to {"zzz", "xyz"}
tell application "Mail"
set k to count of messages of mailbox laSource
if k > 0 then
repeat with i from k to 1 by -1
set myMessage to message i of mailbox laSource
if year of (get date received of myMessage) = 2004 then set mailbox of myMessage to mailbox laDestination
end repeat
end if
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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: New to applescript: year of
      • From: Francis Derive <email@hidden>
References: 
 >Re: New to applescript: year of (From: Yvan KOENIG <email@hidden>)

  • Prev by Date: Re: New to applescript: year of
  • Next by Date: Re: New to applescript: year of
  • Previous by thread: Re: New to applescript: year of
  • Next by thread: Re: New to applescript: year of
  • Index(es):
    • Date
    • Thread