• 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: build a list of mailboxes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: build a list of mailboxes
      • From: "koenig.yvan" <email@hidden>
References: 
 >build a list of mailboxes (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: build a list of mailboxes
  • Next by Date: Re: build a list of mailboxes
  • Previous by thread: Re: build a list of mailboxes
  • Next by thread: Re: build a list of mailboxes
  • Index(es):
    • Date
    • Thread