Re: Script works on my machine, returns 0 results on another
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