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: Axel Luttgens <email@hidden>
- Date: Sun, 18 May 2014 09:42:51 +0200
Le 17 mai 2014 à 19:10, Alex Hall a écrit :
> [...] Is there a setting, something weird in Gmail (maybe his Sent folder isn't called Sent?), or some other idea that will get this to work?
Hello Alex,
Indeed, mailboxes may be organized differently from one account to another, especially with IMAP accounts. For example, the mailbox used for sent messages in a Gmail account is named here "[Gmail]/Sent Mail"; on another IMAP account, it is named "SentMail".
Mail's properties said to refer "top level mailboxes" allow to handle mailboxes having a similar purpose in a systematic way across accounts.
In the case of your script, the 'sent messages' property synthesizes all mailboxes used for storing sent messages; you may use it as some kind of virtual mailbox, or for referencing the underlying account mailboxes:
tell app "Mail" to get mailboxes of sent messages
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