• 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
Re: Delete Mail Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Delete Mail Script


  • Subject: Re: Delete Mail Script
  • From: Robert <email@hidden>
  • Date: Thu, 08 Aug 2013 01:19:35 +0100


On 7 Aug 2013, at 21:10, Deivy Petrescu <email@hidden> wrote:

You can make your life considerably simpler if you just delete the messages that you want to delete:

set j to 2 --how old you want your deleted messages to be

tell application "Mail" to delete (every message of mailbox "Spam Virus Mail" of mailbox "Personal" ¬
whose date received is less than ((current date) - (j * days))) 



You can copy and paste the script in your ASEditor
Deivy Petrescu
email@hidden


Life seems to have got considerably simpler…..

Thank you - and all else who contributed.

Robert.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

References: 
 >Delete Mail Script (From: Robert <email@hidden>)
 >Re: Delete Mail Script (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Delete Mail Script
  • Next by Date: Re: Delete Mail Script
  • Previous by thread: Re: Delete Mail Script
  • Next by thread: Delete Mail Script
  • Index(es):
    • Date
    • Thread