Re: build a list of mailboxes
Re: build a list of mailboxes
- Subject: Re: build a list of mailboxes
- From: Axel Luttgens <email@hidden>
- Date: Sun, 09 Mar 2014 10:08:47 +0100
Le 8 mars 2014 à 18:13, koenig.yvan a écrit :
> Hello
>
> I wished to build a list of every mailboxes available in my Mail datas
>
> I wrote this script :
>
> [...]
>
> Is there a way to achieve my goal without the dirty trick deciphering an error message ?
Hello Yvan,
For sure not as quick nor as efficient as the "error message trick", but probably more reliable, my MboxFullName() handler still "works" here on Mountain Lion.
on MboxFullName(Mbox)
tell application "Mail"
if name of container of Mbox is missing value then return name of Mbox
return my MboxFullName(container of Mbox) & "/" & name of Mbox
end tell
end MboxFullName
tell application "Mail"
set liste to {}
repeat with Mbox in mailboxes
copy my MboxFullName(Mbox) to the end of liste
end repeat
end tell
HTH,
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