Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: Deleting messages in Trash - On My Mac
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deleting messages in Trash - On My Mac



Le 15 mars 2012 à 16:07, email@hidden a écrit :

> Hi Axel,
>
> [...]
>
> 	Unfortunately, this one doesn't.  It gives me this error:
>
> tell application "Mail"
> 	count every mailbox of trash mailbox
> 		--> 19
> 	get account of item 1 of every mailbox of trash mailbox
> Result:
> error "No result was returned from some part of this expression." number -2763
>
> [...]

Hello Marc,

Yes, I'm here on 10.7, and there may thus be some differences.
Could you try adding a single line after the repeat statement :

		repeat with mbox in mailboxes of trash mailbox
			set mbox to contents of mbox

Axel


 _______________________________________________
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: 
 >Deleting messages in Trash - On My Mac (From: email@hidden)
 >Re: Deleting messages in Trash - On My Mac (From: Axel Luttgens <email@hidden>)
 >Re: Deleting messages in Trash - On My Mac (From: email@hidden)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.