Re: Delete Mail Script
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