• 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: Script works on my machine, returns 0 results on another
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script works on my machine, returns 0 results on another


  • Subject: Re: Script works on my machine, returns 0 results on another
  • From: Thomas Fischer <email@hidden>
  • Date: Sun, 18 May 2014 12:00:31 +0200

Hello Yvan,

> A feature is puzzling me : when I ask Mail to return the names of every mailboxes, Gmail's ones aren't listed.
> In fact no mailbox named "Sent Messages" is returned although six of them exist.

if I ask Mail to list all mailboxes, it list only the mailboxes of my standard (preferred?, first?) account.
The following script will ist all mailboxes for me.

tell application "Mail"
	set myMailboxes to {}
	set myAccounts to the name of every account
	repeat with theAccount in myAccounts
		tell account theAccount
			copy theAccount & ":" to the end of myMailboxes
			copy the name of every mailbox to the end of myMailboxes
		end tell
	end repeat
	myMailboxes
end tell

Best
Thomas
 _______________________________________________
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: Script works on my machine, returns 0 results on another
      • From: "koenig.yvan" <email@hidden>
References: 
 >Script works on my machine, returns 0 results on another (From: Alex Hall <email@hidden>)
 >Re: Script works on my machine, returns 0 results on another (From: Alex Hall <email@hidden>)
 >Re: Script works on my machine, returns 0 results on another (From: "koenig.yvan" <email@hidden>)

  • Prev by Date: Re: Script works on my machine, returns 0 results on another
  • Next by Date: Re: Script works on my machine, returns 0 results on another
  • Previous by thread: Re: Script works on my machine, returns 0 results on another
  • Next by thread: Re: Script works on my machine, returns 0 results on another
  • Index(es):
    • Date
    • Thread